summaryrefslogtreecommitdiffstats
path: root/webapp/src/components/GroupModuleGroupList.vue
diff options
context:
space:
mode:
Diffstat (limited to 'webapp/src/components/GroupModuleGroupList.vue')
-rw-r--r--webapp/src/components/GroupModuleGroupList.vue14
1 files changed, 2 insertions, 12 deletions
diff --git a/webapp/src/components/GroupModuleGroupList.vue b/webapp/src/components/GroupModuleGroupList.vue
index 0abd2fa..da51995 100644
--- a/webapp/src/components/GroupModuleGroupList.vue
+++ b/webapp/src/components/GroupModuleGroupList.vue
@@ -51,14 +51,9 @@
</template>
<script>
-import GroupModuleGroupView from '@/components/GroupModuleGroupView'
-
export default {
name: 'GroupModuleGroupList',
- components: {
- GroupModuleGroupView
- },
- props: ['tabIndex'],
+ props: ['tabIndex', 'groups'],
data () {
return {
headers: [
@@ -70,14 +65,9 @@ export default {
selected: []
}
},
- computed: {
- groups () {
- return this.$store.state.groups.groupChain[this.tabIndex].subGroups
- }
- },
methods: {
loadGroup (id) {
- this.$store.dispatch('groups/loadGroupIntoTab', { id, tabIndex: this.tabIndex + 1 })
+ this.$store.dispatch('groups/loadGroup', { id, tabIndex: this.tabIndex + 1, switchTab: true })
}
}
}