mirror of
https://gitlab.com/Chill-Projet/chill-bundles.git
synced 2025-06-12 13:24:25 +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 {
|
export {
|
||||||
getAccompanyingCourse,
|
getAccompanyingCourse,
|
||||||
patchAccompanyingCourse,
|
patchAccompanyingCourse,
|
||||||
@ -212,6 +203,5 @@ export {
|
|||||||
getUsers,
|
getUsers,
|
||||||
whoami,
|
whoami,
|
||||||
getListOrigins,
|
getListOrigins,
|
||||||
getOrigin,
|
|
||||||
postSocialIssue
|
postSocialIssue
|
||||||
};
|
};
|
||||||
|
@ -47,7 +47,7 @@ export default {
|
|||||||
},
|
},
|
||||||
methods: {
|
methods: {
|
||||||
getOptions() {
|
getOptions() {
|
||||||
console.log('loading origins list');
|
//console.log('loading origins list');
|
||||||
getListOrigins().then(response => new Promise((resolve, reject) => {
|
getListOrigins().then(response => new Promise((resolve, reject) => {
|
||||||
this.options = response.results;
|
this.options = response.results;
|
||||||
resolve();
|
resolve();
|
||||||
|
@ -82,11 +82,11 @@ let initPromise = getAccompanyingCourse(id)
|
|||||||
state.accompanyingCourse.socialIssues = value;
|
state.accompanyingCourse.socialIssues = value;
|
||||||
},
|
},
|
||||||
updateOrigin(state, value) {
|
updateOrigin(state, value) {
|
||||||
console.log('value', value);
|
//console.log('value', value);
|
||||||
state.accompanyingCourse.origin = value;
|
state.accompanyingCourse.origin = value;
|
||||||
},
|
},
|
||||||
updateReferrer(state, value) {
|
updateReferrer(state, value) {
|
||||||
console.log('value', value);
|
//console.log('value', value);
|
||||||
state.accompanyingCourse.user = value;
|
state.accompanyingCourse.user = value;
|
||||||
},
|
},
|
||||||
confirmAccompanyingCourse(state, response) {
|
confirmAccompanyingCourse(state, response) {
|
||||||
|
Loading…
x
Reference in New Issue
Block a user