Adjust crmdata store
This commit is contained in:
@@ -62,13 +62,11 @@
|
||||
this.$store.dispatch('crmdata/load')
|
||||
.then((data) => {
|
||||
this.crmData = data;
|
||||
}).catch(error => {
|
||||
});
|
||||
}).catch(error => {});
|
||||
},
|
||||
saveSelections () {
|
||||
this.$store.dispatch('crmdata/save', this.crmData)
|
||||
.catch(error => {
|
||||
});
|
||||
.catch(error => {});
|
||||
},
|
||||
hasVisibleSelections (group) {
|
||||
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(() => {
|
||||
commit('loadingFinish', null, { root: true });
|
||||
commit('alert', {
|
||||
|
||||
Reference in New Issue
Block a user