Skip to content

Commit

Permalink
Fix add new group event
Browse files Browse the repository at this point in the history
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]>
  • Loading branch information
nfebe authored and backportbot-nextcloud[bot] committed May 18, 2023
1 parent 74b4fd2 commit d0f5d25
Showing 1 changed file with 5 additions and 6 deletions.
11 changes: 5 additions & 6 deletions apps/settings/src/views/Users.vue
Original file line number Diff line number Diff line change
Expand Up @@ -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>
Expand Down Expand Up @@ -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 = ''
},
/**
Expand Down

0 comments on commit d0f5d25

Please sign in to comment.