feat(web): create user as admin (#23026)

pull/22632/head
Jason Rasmussen 2025-10-17 14:26:07 -04:00 committed by GitHub
parent 3174a27902
commit 67f093f75b
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
1 changed files with 6 additions and 0 deletions

View File

@ -35,6 +35,7 @@
let name = $state('');
let shouldChangePassword = $state(true);
let notify = $state(true);
let isAdmin = $state(false);
let quotaSize: string | undefined = $state();
let isCreatingUser = $state(false);
@ -67,6 +68,7 @@
name,
quotaSizeInBytes,
notify,
isAdmin,
},
});
@ -127,6 +129,10 @@
<HelperText color="danger">{$t('errors.quota_higher_than_disk_size')}</HelperText>
{/if}
</Field>
<Field label={$t('admin.admin_user')}>
<Switch bind:checked={isAdmin} />
</Field>
</Stack>
</form>
</ModalBody>