summaryrefslogtreecommitdiffstats
path: root/webapp/src/components/ConfiguratorModuleAssign.vue
diff options
context:
space:
mode:
authorUdo Walter2019-03-30 22:49:02 +0100
committerUdo Walter2019-03-30 22:49:02 +0100
commit8a4383885cb6bc19a2ce16bbad31ff0beada5ae2 (patch)
tree6d59120c2cea7c9d7e07d201af8f080d45a35945 /webapp/src/components/ConfiguratorModuleAssign.vue
parent[webapp] fix bug in groups; remember filters in systemlog (diff)
downloadbas-8a4383885cb6bc19a2ce16bbad31ff0beada5ae2.tar.gz
bas-8a4383885cb6bc19a2ce16bbad31ff0beada5ae2.tar.xz
bas-8a4383885cb6bc19a2ce16bbad31ff0beada5ae2.zip
[server] configurator api -> ipxeconfigs and ipxeentries api; [webapp] ui polishing
Diffstat (limited to 'webapp/src/components/ConfiguratorModuleAssign.vue')
-rw-r--r--webapp/src/components/ConfiguratorModuleAssign.vue7
1 files changed, 4 insertions, 3 deletions
diff --git a/webapp/src/components/ConfiguratorModuleAssign.vue b/webapp/src/components/ConfiguratorModuleAssign.vue
index af49d45..5a0d654 100644
--- a/webapp/src/components/ConfiguratorModuleAssign.vue
+++ b/webapp/src/components/ConfiguratorModuleAssign.vue
@@ -97,8 +97,8 @@ export default {
this.selectedGroups = []
this.selectedClients = []
const [ groupsResponse, clientsResponse ] = await Promise.all([
- this.$http.get(`/api/configurator/configs/${value.info.id}/groups`),
- this.$http.get(`/api/configurator/configs/${value.info.id}/clients`)
+ this.$http.get(`/api/ipxeconfigs/${value.info.id}/groups`),
+ this.$http.get(`/api/ipxeconfigs/${value.info.id}/clients`)
])
this.selectedGroups = groupsResponse.data
this.selectedClients = clientsResponse.data
@@ -111,13 +111,14 @@ export default {
this.$store.commit('configurator/setDialog', data)
},
async saveAssignment () {
- let url = '/api/configurator/configs/' + this.dialog.info.id
+ let url = '/api/ipxeconfigs/' + this.dialog.info.id
await Promise.all([
this.$http.put(url + '/groups', { ids: this.selectedGroups.map(x => x.id) }),
this.$http.put(url + '/clients', { ids: this.selectedClients.map(x => x.id) })
])
this.$snackbar({ color: 'success', text: this.$t('success') })
this.setDialog({ show: false })
+ this.$store.dispatch('configurator/loadConfigs')
}
}
}