aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorChristopher Ng <chrng8@gmail.com>2025-03-25 14:31:45 -0700
committerChristopher Ng <chrng8@gmail.com>2025-03-28 14:12:52 -0700
commitb093eff36c8c3af8d4239e569b03971762008ec9 (patch)
tree8afad28b4de885fa5843e746f306c2bcb11de8e9
parent6edbeb7052fc0e5f8107716254ef66f1ae460987 (diff)
downloadnextcloud-server-b093eff36c8c3af8d4239e569b03971762008ec9.tar.gz
nextcloud-server-b093eff36c8c3af8d4239e569b03971762008ec9.zip
fix(settings): Fix group creation when editing users
Signed-off-by: Christopher Ng <chrng8@gmail.com>
-rw-r--r--apps/settings/src/components/Users/UserRow.vue9
1 files changed, 4 insertions, 5 deletions
diff --git a/apps/settings/src/components/Users/UserRow.vue b/apps/settings/src/components/Users/UserRow.vue
index cf5af1b1d5e..3297414ac9d 100644
--- a/apps/settings/src/components/Users/UserRow.vue
+++ b/apps/settings/src/components/Users/UserRow.vue
@@ -749,18 +749,17 @@ export default {
* @param {string} gid Group id
*/
async createGroup({ name: gid }) {
- this.loading = { groups: true, subadmins: true }
+ this.loading.groups = true
try {
await this.$store.dispatch('addGroup', gid)
this.availableGroups.push({ id: gid, name: gid })
const userid = this.user.id
await this.$store.dispatch('addUserGroup', { userid, gid })
+ this.userGroups.push({ id: gid, name: gid })
} catch (error) {
- console.error(error)
- } finally {
- this.loading = { groups: false, subadmins: false }
+ logger.error(t('settings', 'Failed to create group'), { error })
}
- return this.$store.getters.getGroups[this.groups.length]
+ this.loading.groups = false
},
/**