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.vue8
1 files changed, 6 insertions, 2 deletions
diff --git a/webapp/src/components/GroupModuleGroupView.vue b/webapp/src/components/GroupModuleGroupView.vue
index df2dec6..634b49b 100644
--- a/webapp/src/components/GroupModuleGroupView.vue
+++ b/webapp/src/components/GroupModuleGroupView.vue
@@ -60,7 +60,7 @@
<div v-else class="chip-container non-selectable">
<v-tooltip v-for="parent in firstParents" :key="parent.id" top open-delay="800">
<template #activator="{ on }">
- <v-chip v-on="on" small label style="width: calc(50% - 8px)">
+ <v-chip v-on="on" small label style="width: calc(50% - 8px)" @click="openParent(parent)">
<span class="chip-text">{{ parent.name || parent.id }}</span>
</v-chip>
</template>
@@ -231,7 +231,7 @@ export default {
...mapMutations('groups', ['setDialog']),
setShowAll (value) {
this.$store.commit('groups/setShowAll', { index: this.tabIndex, value })
- this.$store.dispatch('groups/loadGroup', { id: this.group.id, tabIndex: this.tabIndex, reload: true })
+ this.$store.dispatch('groups/loadGroup', { id: this.group.id, tabIndex: this.tabIndex })
},
removeIprange (index) {
this.ipranges.splice(index, 1)
@@ -275,6 +275,9 @@ export default {
name: 'GroupModule.group',
params: { id, noReload: true }
})
+ },
+ openParent (parent) {
+ this.$store.dispatch('groups/loadGroup', { id: parent.id, name: parent.name, tabIndex: this.tabIndex, asParent: true, switchTab: true })
}
},
created () {
@@ -317,6 +320,7 @@ export default {
.chip-container >>> .v-chip__content {
width: 100%;
+ cursor: pointer;
}
.chip-text {