summaryrefslogtreecommitdiffstats
path: root/webapp/src/store
diff options
context:
space:
mode:
authorUdo Walter2018-08-05 02:16:35 +0200
committerUdo Walter2018-08-05 02:16:35 +0200
commit6e31677be0e9b07b9cf63cc7efc4b26c5b7db926 (patch)
treed09e12697255da01c3e662fabe1b4402d827eab7 /webapp/src/store
parentcode adaption (diff)
downloadbas-6e31677be0e9b07b9cf63cc7efc4b26c5b7db926.tar.gz
bas-6e31677be0e9b07b9cf63cc7efc4b26c5b7db926.tar.xz
bas-6e31677be0e9b07b9cf63cc7efc4b26c5b7db926.zip
[webapp/groups] asdf
Diffstat (limited to 'webapp/src/store')
-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 ddb1df8..84dbc7a 100644
--- a/webapp/src/store/groups.js
+++ b/webapp/src/store/groups.js
@@ -37,14 +37,14 @@ export default {
context.commit('setClientList', res[1].data.map(x => ({ id: x.id, name: x.name || x.id })))
})
},
- loadHome (context) {
- context.commit('setTab', { index: 0, item: { tabType: 'home', groups: [], clients: [] } })
+ loadHome (context, placeholder) {
+ if (placeholder) context.commit('setTab', { index: 0, item: { tabType: 'home', groups: [], clients: [] } })
var apiFunction = context.state.showAll ? 'getAll' : 'getTopLevel'
Promise.all([axios.get('/api/groups/' + apiFunction), axios.get('/api/clients/' + apiFunction)]).then(res => {
context.commit('setTab', { index: 0, item: { tabType: 'home', groups: res[0].data, clients: res[1].data } })
})
},
- loadGroup (context, { id, tabIndex, switchTab, reload }) {
+ loadGroup (context, { id, tabIndex, switchTab, reload, placeholder }) {
if (!reload && context.state.tabChain.length > tabIndex && context.state.tabChain[tabIndex].id === id) {
if (switchTab) context.commit('setActiveTab', tabIndex)
} else {