diff --git a/dashboard/src/components/UserDialog.vue b/dashboard/src/components/UserDialog.vue index 6ed46fd7a..1736b2459 100644 --- a/dashboard/src/components/UserDialog.vue +++ b/dashboard/src/components/UserDialog.vue @@ -40,7 +40,7 @@ const fallbackEmail = ref(''); const avatarUrl = ref(''); const username = ref(''); const role = ref(''); -const localGroups = ref([]); +const localGroupIds = ref([]); const allGroups = ref([]); const allLocalGroups = ref([]); const active = ref(true); @@ -145,7 +145,7 @@ async function onSubmit() { } } - const [groupError] = await usersModel.setLocalGroups(userId, localGroups.value); + const [groupError] = await usersModel.setLocalGroups(userId, localGroupIds.value); if (groupError) { formError.value.generic = groupError.body ? groupError.body.message : 'Internal error'; busy.value = false; @@ -202,7 +202,7 @@ defineExpose({ result.forEach(g => g.label = g.name); allGroups.value = result; allLocalGroups.value = result.filter(g => !g.source); - localGroups.value = (u ? u.groupIds.filter(g => !g.source) : []); + localGroupIds.value = (u ? u.groupIds.filter(g => !g.source) : []); [error, result] = await profileModel.get(); if (error) return console.error(error); @@ -293,7 +293,7 @@ defineExpose({
{{ $t('users.user.noGroups') }}
- +