summaryrefslogtreecommitdiffstats
path: root/webapp/src/store
diff options
context:
space:
mode:
authorUdo Walter2019-02-24 02:33:52 +0100
committerUdo Walter2019-02-24 02:33:52 +0100
commit813195e3dfb5baae09aa11cddeef12fb0b9fb49b (patch)
tree58562c85d76efdad41afcd0664c5a8cdc8cb4a55 /webapp/src/store
parent[webapp/alerts] Remove unnecessary code which produced vue warnings (diff)
downloadbas-813195e3dfb5baae09aa11cddeef12fb0b9fb49b.tar.gz
bas-813195e3dfb5baae09aa11cddeef12fb0b9fb49b.tar.xz
bas-813195e3dfb5baae09aa11cddeef12fb0b9fb49b.zip
[webapp/groups] rework old tables to new data table
slightly redesigned the editing of groups and clients
Diffstat (limited to 'webapp/src/store')
-rw-r--r--webapp/src/store/groups.js4
1 files changed, 2 insertions, 2 deletions
diff --git a/webapp/src/store/groups.js b/webapp/src/store/groups.js
index 8315dd0..df00bcd 100644
--- a/webapp/src/store/groups.js
+++ b/webapp/src/store/groups.js
@@ -51,8 +51,8 @@ export default {
},
loadLists (context) {
Promise.all([axios.get('/api/groups'), axios.get('/api/clients')]).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 })))
+ context.commit('setGroupList', res[0].data)
+ context.commit('setClientList', res[1].data)
})
},
loadGroup (context, { id, name, tabIndex, switchTab, reload, save, placeholderName }) {