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]>
  • Loading branch information
nfebe committed May 17, 2023
1 parent 85df0f6 commit 3421ff6
Show file tree
Hide file tree
Showing 7 changed files with 14 additions and 15 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
4 changes: 2 additions & 2 deletions dist/core-common.js

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion dist/core-common.js.map

Large diffs are not rendered by default.

4 changes: 2 additions & 2 deletions dist/settings-users-8351.js

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion dist/settings-users-8351.js.map

Large diffs are not rendered by default.

4 changes: 2 additions & 2 deletions dist/settings-vue-settings-apps-users-management.js

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion dist/settings-vue-settings-apps-users-management.js.map

Large diffs are not rendered by default.

0 comments on commit 3421ff6

Please sign in to comment.