mirror of
https://gitlab.com/Chill-Projet/chill-bundles.git
synced 2025-06-07 18:44:08 +00:00
now i have to find id+method from payload
This commit is contained in:
parent
21f75c8a63
commit
132f11298e
@ -56,7 +56,13 @@ export default {
|
|||||||
},
|
},
|
||||||
updateSocialIssues(value) {
|
updateSocialIssues(value) {
|
||||||
console.log('@@@ CHANGE value', value);
|
console.log('@@@ CHANGE value', value);
|
||||||
this.$store.dispatch('updateSocialIssues', value);
|
this.$store.dispatch('updateSocialIssues', this.transformValue(value));
|
||||||
|
},
|
||||||
|
transformValue(value) {
|
||||||
|
let payload = value;
|
||||||
|
let body = {}; //{ type: "social_issue", id: 5 };
|
||||||
|
let method = ''; //'POST' : 'DELETE';
|
||||||
|
return { payload, body, method };
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
@ -178,8 +178,8 @@ let initPromise = getAccompanyingCourse(id)
|
|||||||
resolve();
|
resolve();
|
||||||
})).catch((error) => { commit('catchError', error) });
|
})).catch((error) => { commit('catchError', error) });
|
||||||
},
|
},
|
||||||
updateSocialIssues({ commit }, payload) {
|
updateSocialIssues({ commit }, { payload, body, method }) {
|
||||||
console.log('## action: payload', payload);
|
console.log('## action: payload', { payload, body, method });
|
||||||
|
|
||||||
//postSocialIssue(id, body, method)
|
//postSocialIssue(id, body, method)
|
||||||
//.then(response => new Promise((resolve, reject) => {
|
//.then(response => new Promise((resolve, reject) => {
|
||||||
|
Loading…
x
Reference in New Issue
Block a user