Adjust crmdata store

This commit is contained in:
Björn Fromme
2019-09-27 13:25:34 +02:00
parent ed51294ee5
commit 8cd0aabe29
2 changed files with 3 additions and 5 deletions
@@ -62,13 +62,11 @@
this.$store.dispatch('crmdata/load') this.$store.dispatch('crmdata/load')
.then((data) => { .then((data) => {
this.crmData = data; this.crmData = data;
}).catch(error => { }).catch(error => {});
});
}, },
saveSelections () { saveSelections () {
this.$store.dispatch('crmdata/save', this.crmData) this.$store.dispatch('crmdata/save', this.crmData)
.catch(error => { .catch(error => {});
});
}, },
hasVisibleSelections (group) { hasVisibleSelections (group) {
if (this.hiddenSelectionGroups.indexOf(group.id) !== -1) { if (this.hiddenSelectionGroups.indexOf(group.id) !== -1) {
@@ -36,7 +36,7 @@ export default {
} }
}); });
return client.put('/api/crm-selections/' + data.id, data) return client.put('/api/crm-selections', data)
.then(() => { .then(() => {
commit('loadingFinish', null, { root: true }); commit('loadingFinish', null, { root: true });
commit('alert', { commit('alert', {