summaryrefslogtreecommitdiffstats
path: root/webapp/src/components/GroupModule.vue
diff options
context:
space:
mode:
authorUdo Walter2018-08-04 10:18:59 +0200
committerUdo Walter2018-08-04 10:18:59 +0200
commit132e04e3f71a101f69309b4c9c8b8ed5618b111b (patch)
tree933679f9cdba76fdfccb9c4b5d441fcd29200ea0 /webapp/src/components/GroupModule.vue
parentsmall changes (diff)
downloadbas-132e04e3f71a101f69309b4c9c8b8ed5618b111b.tar.gz
bas-132e04e3f71a101f69309b4c9c8b8ed5618b111b.tar.xz
bas-132e04e3f71a101f69309b4c9c8b8ed5618b111b.zip
[groups] small bug fixes
Diffstat (limited to 'webapp/src/components/GroupModule.vue')
-rw-r--r--webapp/src/components/GroupModule.vue12
1 files changed, 5 insertions, 7 deletions
diff --git a/webapp/src/components/GroupModule.vue b/webapp/src/components/GroupModule.vue
index c163b5a..08bd6c6 100644
--- a/webapp/src/components/GroupModule.vue
+++ b/webapp/src/components/GroupModule.vue
@@ -47,7 +47,7 @@ export default {
name: 'GroupModule',
routes () {
return [
- { name: 'home', path: '' },
+ { name: 'home', path: 'home' },
{ name: 'group', path: ':id' },
{ name: 'client', path: 'client/:id' }
]
@@ -91,12 +91,10 @@ export default {
if (this.groupList.length === 0 || this.clientList.length === 0) this.$store.dispatch('groups/loadLists')
if (this.tabChain.length === 0) this.$store.dispatch('groups/loadHome')
this.loadItem(this.$route.name, this.$route.params.id)
- if (this.tabChain[this.activeTab].tabType !== 'home') {
- this.$router.replace({
- name: 'GroupModule.' + this.tabChain[this.activeTab].tabType,
- params: { id: this.tabChain[this.activeTab].id, noReload: true }
- })
- }
+ this.$router.replace({
+ name: 'GroupModule.' + this.tabChain[this.activeTab].tabType,
+ params: { id: this.tabChain[this.activeTab].id, noReload: true }
+ })
},
beforeRouteUpdate (to, from, next) {
if (!to.params.noReload) this.loadItem(to.name, to.params.id)