summaryrefslogtreecommitdiffstats
path: root/webapp/src/store
diff options
context:
space:
mode:
authorUdo Walter2018-09-18 12:17:51 +0200
committerUdo Walter2018-09-18 12:17:51 +0200
commitaf1883f27dd62e4d85041345a131d7615b6b20ed (patch)
tree8a4091e6310fddef6c4a57d61269f4bea22b3632 /webapp/src/store
parent[groups] add ability to set a config for groups and clients (diff)
downloadbas-af1883f27dd62e4d85041345a131d7615b6b20ed.tar.gz
bas-af1883f27dd62e4d85041345a131d7615b6b20ed.tar.xz
bas-af1883f27dd62e4d85041345a131d7615b6b20ed.zip
[configurator] small bugfixes
Diffstat (limited to 'webapp/src/store')
-rw-r--r--webapp/src/store/groups.js4
1 files changed, 3 insertions, 1 deletions
diff --git a/webapp/src/store/groups.js b/webapp/src/store/groups.js
index 03b351d..12eea4f 100644
--- a/webapp/src/store/groups.js
+++ b/webapp/src/store/groups.js
@@ -40,10 +40,12 @@ export default {
}
},
actions: {
- loadLists (context) {
+ loadConfigs (context) {
axios.get('/api/configurator/configs').then(result => {
context.commit('setConfigList', result.data.map(x => ({ id: x.id, name: x.name || x.id })))
})
+ },
+ loadLists (context) {
Promise.all([axios.get('/api/groups/getList'), axios.get('/api/clients/getList')]).then(res => {
context.commit('setGroupList', res[0].data.map(x => ({ id: x.id, name: x.name || x.id })))
context.commit('setClientList', res[1].data.map(x => ({ id: x.id, name: x.name || x.id })))