mirror of
https://gitlab.com/Chill-Projet/chill-bundles.git
synced 2025-06-07 18:44:08 +00:00
hide console log, remove unused api endpoint method
This commit is contained in:
parent
5861a86289
commit
fd94f27eee
@ -192,15 +192,6 @@ const getListOrigins = () => {
|
||||
});
|
||||
}
|
||||
|
||||
const getOrigin = (id) => {
|
||||
const url = `/api/1.0/person/accompanying-period/origin/${id}.json`;
|
||||
return fetch(url)
|
||||
.then(response => {
|
||||
if (response.ok) { return response.json(); }
|
||||
throw Error('Error with request resource response');
|
||||
});
|
||||
}
|
||||
|
||||
export {
|
||||
getAccompanyingCourse,
|
||||
patchAccompanyingCourse,
|
||||
@ -212,6 +203,5 @@ export {
|
||||
getUsers,
|
||||
whoami,
|
||||
getListOrigins,
|
||||
getOrigin,
|
||||
postSocialIssue
|
||||
};
|
||||
|
@ -47,7 +47,7 @@ export default {
|
||||
},
|
||||
methods: {
|
||||
getOptions() {
|
||||
console.log('loading origins list');
|
||||
//console.log('loading origins list');
|
||||
getListOrigins().then(response => new Promise((resolve, reject) => {
|
||||
this.options = response.results;
|
||||
resolve();
|
||||
|
@ -82,11 +82,11 @@ let initPromise = getAccompanyingCourse(id)
|
||||
state.accompanyingCourse.socialIssues = value;
|
||||
},
|
||||
updateOrigin(state, value) {
|
||||
console.log('value', value);
|
||||
//console.log('value', value);
|
||||
state.accompanyingCourse.origin = value;
|
||||
},
|
||||
updateReferrer(state, value) {
|
||||
console.log('value', value);
|
||||
//console.log('value', value);
|
||||
state.accompanyingCourse.user = value;
|
||||
},
|
||||
confirmAccompanyingCourse(state, response) {
|
||||
|
Loading…
x
Reference in New Issue
Block a user