Adjust crmdata store
This commit is contained in:
@@ -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', {
|
||||||
|
|||||||
Reference in New Issue
Block a user