summaryrefslogtreecommitdiffstats
path: root/webapp/src/store/groups.js
diff options
context:
space:
mode:
Diffstat (limited to 'webapp/src/store/groups.js')
-rw-r--r--webapp/src/store/groups.js6
1 files changed, 3 insertions, 3 deletions
diff --git a/webapp/src/store/groups.js b/webapp/src/store/groups.js
index f52cdcf..5fe15d3 100644
--- a/webapp/src/store/groups.js
+++ b/webapp/src/store/groups.js
@@ -76,7 +76,7 @@ export default {
context.dispatch('loadClientList')
context.dispatch('loadConfigList')
},
- async loadGroup (context, { id, name, tabIndex, switchTab, asParent }) {
+ async loadGroup (context, { id, name, tabIndex, switchTab, asParent, gotoInfo }) {
const tabChain = context.state.tabChain
const showAll = tabChain.length > tabIndex && tabChain[tabIndex].id === id && tabChain[tabIndex].tabShowAll
const insert = asParent && tabChain.length > tabIndex && tabIndex >= 1 && tabChain[tabIndex - 1].id !== id
@@ -85,7 +85,7 @@ export default {
if (insert) context.commit('setActiveTab', 2)
context.commit(insert ? 'insertTab' : 'setTab', {
index: tabIndex,
- item: { id, name, tabType: 'group', tabShowAll: showAll, subgroups: [], clients: [], isPlaceholder: true }
+ item: { id, name, tabType: 'group', tabShowAll: showAll, subgroups: [], clients: [] }
})
}
if (insert) tabIndex = 1
@@ -97,7 +97,7 @@ export default {
res.data.tabType = 'group'
res.data.tabShowAll = showAll
res.data.subgroups = Object.freeze(res.data.subgroups)
- res.data.loadedAsParent = asParent
+ res.data.gotoInfo = asParent || gotoInfo
context.commit('setTab', { index: tabIndex, item: res.data })
} catch (e) {
if (switchTab) context.commit('setActiveTab', srcTabIndex)