From ec915474f087ff9334b847c5f9ff2bc8baaa65a9 Mon Sep 17 00:00:00 2001 From: fenn-cs Date: Wed, 17 May 2023 14:10:27 +0100 Subject: Fix add new group event 1ee8fbaad1eea6544b21059f65efe12a9e601956 broke the addgroup functionality by not updating the event to reflect the one in https://github.com/nextcloud/nextcloud-vue/blob/master/src/components/NcAppNavigationNewItem/NcAppNavigationNewItem.vue Resolves : https://github.com/nextcloud/server/issues/38340 Signed-off-by: fenn-cs Signed-off-by: nextcloud-command --- apps/settings/src/views/Users.vue | 11 +++++------ 1 file changed, 5 insertions(+), 6 deletions(-) (limited to 'apps') diff --git a/apps/settings/src/views/Users.vue b/apps/settings/src/views/Users.vue index a4b2316f137..3dbb031232f 100644 --- a/apps/settings/src/views/Users.vue +++ b/apps/settings/src/views/Users.vue @@ -37,7 +37,7 @@ :loading="loadingAddGroup" :title="t('settings', 'Add group')" @click="showAddGroupForm" - @update:title="createGroup"> + @new-item="createGroup"> @@ -445,16 +445,15 @@ export default { }, showAddGroupForm() { - this.$refs.addGroup.editingActive = true - this.$refs.addGroup.onMenuToggle(false) + this.$refs.addGroup.newItemActive = true this.$nextTick(() => { - this.$refs.addGroup.$refs.editingInput.focusInput() + this.$refs.addGroup.$refs.newItemInput.focusInput() }) }, hideAddGroupForm() { - this.$refs.addGroup.editingActive = false - this.$refs.addGroup.editingValue = '' + this.$refs.addGroup.newItemActive = false + this.$refs.addGroup.newItemValue = '' }, /** -- cgit v1.2.3