hide console log, remove unused api endpoint method

This commit is contained in:
Mathieu Jaumotte 2021-07-01 10:30:39 +02:00
parent 5861a86289
commit fd94f27eee
3 changed files with 3 additions and 13 deletions

View File

@ -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
};

View File

@ -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();

View File

@ -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) {