Add user edit/new dialog

This commit is contained in:
Johannes Zellner
2025-02-16 17:04:58 +01:00
parent 270d27be73
commit 740c88c506
4 changed files with 311 additions and 5 deletions

View File

@@ -26,6 +26,7 @@ const allApps = ref([]);
async function onSubmit() {
busy.value = true;
formError.value = '';
if (group.value) {
const [error] = await groupsModel.update(group.value.id, name.value, users.value.map(u => u.id), apps.value.map(u => u.id));
@@ -82,12 +83,12 @@ defineExpose({
@confirm="onSubmit()"
>
<p class="text-warning" v-if="group?.source">{{ $t('users.editGroupDialog.externalLdapWarning') }}</p>
<form @submit.prevent="onSubmit()">
<form @submit.prevent="onSubmit()" autocomplete="off">
<fieldset :disabled="busy">
<input type="submit" style="display: none;" />
<FormGroup>
<label for="">{{ $t('users.group.name') }}</label>
<label for="nameInput">{{ $t('users.group.name') }}</label>
<TextInput id="nameInput" v-model="name" />
</FormGroup>