Skip to content

Commit ec91547

Browse files
nfebenextcloud-command
authored andcommitted
Fix add new group event
1ee8fba 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 : #38340 Signed-off-by: fenn-cs <[email protected]> Signed-off-by: nextcloud-command <[email protected]>
1 parent c9aadb1 commit ec91547

File tree

5 files changed

+11
-12
lines changed

5 files changed

+11
-12
lines changed

apps/settings/src/views/Users.vue

Lines changed: 5 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -37,7 +37,7 @@
3737
:loading="loadingAddGroup"
3838
:title="t('settings', 'Add group')"
3939
@click="showAddGroupForm"
40-
@update:title="createGroup">
40+
@new-item="createGroup">
4141
<template #icon>
4242
<Plus :size="20" />
4343
</template>
@@ -445,16 +445,15 @@ export default {
445445
},
446446
447447
showAddGroupForm() {
448-
this.$refs.addGroup.editingActive = true
449-
this.$refs.addGroup.onMenuToggle(false)
448+
this.$refs.addGroup.newItemActive = true
450449
this.$nextTick(() => {
451-
this.$refs.addGroup.$refs.editingInput.focusInput()
450+
this.$refs.addGroup.$refs.newItemInput.focusInput()
452451
})
453452
},
454453
455454
hideAddGroupForm() {
456-
this.$refs.addGroup.editingActive = false
457-
this.$refs.addGroup.editingValue = ''
455+
this.$refs.addGroup.newItemActive = false
456+
this.$refs.addGroup.newItemValue = ''
458457
},
459458
460459
/**

dist/settings-users-8351.js

Lines changed: 2 additions & 2 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

dist/settings-users-8351.js.map

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)