summaryrefslogtreecommitdiffstats
path: root/webapp/src/components/GroupModuleClientView.vue
diff options
context:
space:
mode:
Diffstat (limited to 'webapp/src/components/GroupModuleClientView.vue')
-rw-r--r--webapp/src/components/GroupModuleClientView.vue7
1 files changed, 4 insertions, 3 deletions
diff --git a/webapp/src/components/GroupModuleClientView.vue b/webapp/src/components/GroupModuleClientView.vue
index c8f0bb1..6e5e2e6 100644
--- a/webapp/src/components/GroupModuleClientView.vue
+++ b/webapp/src/components/GroupModuleClientView.vue
@@ -193,7 +193,7 @@ export default {
}
},
methods: {
- ...mapMutations('groups', ['setDialog']),
+ ...mapMutations('groups', ['setDialog', 'setActiveTab', 'adjustTabSlider', 'deleteFromTabChain']),
editInfo () {
this.editMode = true
this.info.name = this.client.name
@@ -207,12 +207,13 @@ export default {
cancelEdit () {
this.editMode = false
if (this.client.id === 'create') {
- this.$store.commit('groups/deleteFromTabChain', { index: this.tabIndex, count: 1 })
- this.$store.commit('groups/setActiveTab', this.tabIndex - 1)
+ this.deleteFromTabChain({ index: this.tabIndex, count: 1 })
+ this.setActiveTab(this.tabIndex - 1)
}
},
saveData () {
this.info.configId = this.info.configId === undefined ? null : this.info.configId
+ this.adjustTabSlider()
this.$store.dispatch('groups/saveClient', {
id: this.client.id,
data: this.info,