summaryrefslogtreecommitdiffstats
path: root/webapp/src/components/GroupModuleGroupView.vue
diff options
context:
space:
mode:
authorUdo Walter2019-04-14 14:53:08 +0200
committerUdo Walter2019-04-14 14:53:08 +0200
commitf33e5d8c920b1f673431f6b031b2da470ecd6387 (patch)
tree1423be0cfcbb380e97112305d16c6f7a146c20c2 /webapp/src/components/GroupModuleGroupView.vue
parent[server/registration] Bugfix: DHCP mapping was not correctly created if the d... (diff)
downloadbas-f33e5d8c920b1f673431f6b031b2da470ecd6387.tar.gz
bas-f33e5d8c920b1f673431f6b031b2da470ecd6387.tar.xz
bas-f33e5d8c920b1f673431f6b031b2da470ecd6387.zip
[webapp/groups] same as last commit but better
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,