summaryrefslogtreecommitdiffstats
path: root/webapp/src/components/GroupModuleGroupView.vue
diff options
context:
space:
mode:
Diffstat (limited to 'webapp/src/components/GroupModuleGroupView.vue')
-rw-r--r--webapp/src/components/GroupModuleGroupView.vue7
1 files changed, 4 insertions, 3 deletions
diff --git a/webapp/src/components/GroupModuleGroupView.vue b/webapp/src/components/GroupModuleGroupView.vue
index 7333c74..a793d8a 100644
--- a/webapp/src/components/GroupModuleGroupView.vue
+++ b/webapp/src/components/GroupModuleGroupView.vue
@@ -249,7 +249,7 @@ export default {
}
},
methods: {
- ...mapMutations('groups', ['setDialog']),
+ ...mapMutations('groups', ['setDialog', 'setActiveTab', 'adjustTabSlider', 'deleteFromTabChain']),
setShowAll (value) {
this.$store.commit('groups/setShowAll', { index: this.tabIndex, value })
this.$store.dispatch('groups/loadGroup', { id: this.group.id, tabIndex: this.tabIndex })
@@ -271,13 +271,14 @@ export default {
cancelEdit () {
this.editMode = false
if (this.group.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.ipranges = this.ipranges.filter(iprange => iprange.startIp && iprange.endIp)
+ this.adjustTabSlider()
this.$store.dispatch('groups/saveGroup', {
id: this.group.id,
data: this.info,