Add role selector to invite form and user management

This commit is contained in:
2026-01-28 18:46:02 +00:00
parent 4b753cb57a
commit 872a06d713
3 changed files with 50 additions and 13 deletions

View File

@@ -250,7 +250,7 @@ class ApiClient {
await this.fetch(`/admin/users/${id}`, { method: 'DELETE' });
}
async createInvite(data: { email: string; name: string }): Promise<Invite & { setupUrl: string }> {
async createInvite(data: { email: string; name: string; role?: 'admin' | 'user' }): Promise<Invite & { setupUrl: string }> {
return this.fetch('/admin/invites', {
method: 'POST',
body: JSON.stringify(data),