summaryrefslogtreecommitdiffstats
path: root/webapp/src/store
diff options
context:
space:
mode:
authorUdo Walter2019-10-24 16:40:41 +0200
committerUdo Walter2019-10-24 16:40:41 +0200
commit0dcbc17552e4f99692ad9daa793b78909e497b32 (patch)
tree6061fb4f0218ed93298845aa07a120c1f011eeb9 /webapp/src/store
parent[configloader] new confighelper and test api to get a priority list of loaded... (diff)
downloadbas-0dcbc17552e4f99692ad9daa793b78909e497b32.tar.gz
bas-0dcbc17552e4f99692ad9daa793b78909e497b32.tar.xz
bas-0dcbc17552e4f99692ad9daa793b78909e497b32.zip
[groups] Add first implementation of the new config path ui
Diffstat (limited to 'webapp/src/store')
-rw-r--r--webapp/src/store/groups.js6
1 files changed, 6 insertions, 0 deletions
diff --git a/webapp/src/store/groups.js b/webapp/src/store/groups.js
index 7948e31..6c349f8 100644
--- a/webapp/src/store/groups.js
+++ b/webapp/src/store/groups.js
@@ -102,6 +102,10 @@ export default {
res.data.subgroups = Object.freeze(res.data.subgroups)
res.data.gotoInfo = asParent || gotoInfo
res.data.autoGoto = autoGoto
+ if (id > 0) {
+ const configRes = await axios.get('/api/configloader/test/group/' + id + '?list')
+ res.data.configPath = configRes.data
+ }
context.commit('setTab', { index: tabIndex, item: res.data })
} catch (e) {
if (switchTab) context.commit('setActiveTab', srcTabIndex)
@@ -117,6 +121,8 @@ export default {
try {
const res = await axios.get('/api/clients/' + id)
res.data.tabType = 'client'
+ const configRes = await axios.get('/api/configloader/test/' + (res.data.uuid || '') + '?list')
+ res.data.configPath = configRes.data
context.commit('setTab', { index: tabIndex, item: res.data })
} catch (e) {
if (switchTab) context.commit('setActiveTab', srcTabIndex)