diff options
author | fenn-cs <fenn25.fn@gmail.com> | 2023-05-17 14:10:27 +0100 |
---|---|---|
committer | Ferdinand Thiessen <opensource@fthiessen.de> | 2023-06-08 17:15:30 +0200 |
commit | f2e58c6c11ec9da1d2beac15176b0af7d8b8cdcf (patch) | |
tree | 7ab340ee281d6c140f435bf9325765e702f7144c /apps/settings | |
parent | 09464c6453af74e5b5442337e48ec945446b9cf7 (diff) | |
download | nextcloud-server-f2e58c6c11ec9da1d2beac15176b0af7d8b8cdcf.tar.gz nextcloud-server-f2e58c6c11ec9da1d2beac15176b0af7d8b8cdcf.zip |
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 <fenn25.fn@gmail.com>
Signed-off-by: nextcloud-command <nextcloud-command@users.noreply.github.com>
Diffstat (limited to 'apps/settings')
-rw-r--r-- | apps/settings/src/views/Users.vue | 11 |
1 files changed, 5 insertions, 6 deletions
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"> <template #icon> <Plus :size="20" /> </template> @@ -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 = '' }, /** |