summaryrefslogtreecommitdiffstats
path: root/webapp/src/components/GroupModule.vue
diff options
context:
space:
mode:
Diffstat (limited to 'webapp/src/components/GroupModule.vue')
-rw-r--r--webapp/src/components/GroupModule.vue9
1 files changed, 2 insertions, 7 deletions
diff --git a/webapp/src/components/GroupModule.vue b/webapp/src/components/GroupModule.vue
index 2c7a399..5d7a25d 100644
--- a/webapp/src/components/GroupModule.vue
+++ b/webapp/src/components/GroupModule.vue
@@ -64,15 +64,9 @@ export default {
...mapState('groups', ['tabChain', 'activeTab', 'groupList', 'clientList']),
reloading () {
return this.tabChain.some(tab => tab.loading)
- },
- activeTabName () {
- return this.tabChain[this.activeTab].name
}
},
watch: {
- activeTabName () {
- window.dispatchEvent(new Event('resize'))
- },
activeTab (index) {
this.updateUrl()
},
@@ -81,7 +75,7 @@ export default {
}
},
methods: {
- ...mapMutations('groups', ['setActiveTab', 'setTab']),
+ ...mapMutations('groups', ['setActiveTab', 'setTab', 'adjustTabSlider']),
...mapActions('groups', ['reload']),
loadItem (routeName, id) {
const type = routeName.replace('GroupModule.', '')
@@ -108,6 +102,7 @@ export default {
this.$store.dispatch('groups/loadLists')
if (this.$route.params.id > 0 || this.$route.params.id === 'create') {
this.$store.dispatch('groups/loadGroup', { id: 0, tabIndex: 0 })
+ this.adjustTabSlider()
this.loadItem(this.$route.name, this.$route.params.id)
} else {
const tabType = this.tabChain.length ? this.tabChain[this.activeTab].tabType : 'group'