From 44c9a65505ee1d2b9ec82c7fe113f0bb05869a49 Mon Sep 17 00:00:00 2001 From: Mathieu Jaumotte Date: Fri, 7 May 2021 16:22:02 +0200 Subject: [PATCH] cleaning console log --- .../public/vuejs/AccompanyingCourse/store/index.js | 9 ++------- .../vuejs/AccompanyingCourse/store/modules/addPersons.js | 3 --- 2 files changed, 2 insertions(+), 10 deletions(-) diff --git a/src/Bundle/ChillPersonBundle/Resources/public/vuejs/AccompanyingCourse/store/index.js b/src/Bundle/ChillPersonBundle/Resources/public/vuejs/AccompanyingCourse/store/index.js index 04785eca5..69ff448b3 100644 --- a/src/Bundle/ChillPersonBundle/Resources/public/vuejs/AccompanyingCourse/store/index.js +++ b/src/Bundle/ChillPersonBundle/Resources/public/vuejs/AccompanyingCourse/store/index.js @@ -23,14 +23,12 @@ let initPromise = getAccompanyingCourse(id) }, mutations: { removeParticipation(state, item) { - //console.log('mutation: remove item', item.id); + //console.log('### mutation: remove item', item.id); state.accompanyingCourse.participations = state.accompanyingCourse.participations.filter(participation => participation !== item); }, closeParticipation(state, { participation, payload }) { - console.log('### mutation: close item', { participation, payload }); - // trouve dans le state le payload et le supprime du state + //console.log('### mutation: close item', { participation, payload }); state.accompanyingCourse.participations = state.accompanyingCourse.participations.filter(participation => participation !== payload); - // pousse la participation state.accompanyingCourse.participations.push(participation); }, addParticipation(state, participation) { @@ -46,7 +44,6 @@ let initPromise = getAccompanyingCourse(id) //console.log('## action: fetch delete participation: payload', payload.person.id); postParticipation(id, payload.person.id, 'DELETE') .then(participation => new Promise((resolve, reject) => { - //console.log('payload', payload); commit('closeParticipation', { participation, payload }); resolve(); })) @@ -58,7 +55,6 @@ let initPromise = getAccompanyingCourse(id) //console.log('## action: fetch post participation: payload', payload.id); postParticipation(id, payload.id, 'POST') .then(participation => new Promise((resolve, reject) => { - //console.log(participation, payload); addPersons.commit('addParticipation', participation); addPersons.commit('resetState', payload); resolve(); @@ -69,7 +65,6 @@ let initPromise = getAccompanyingCourse(id) }, } }); - //console.log('store object', store.state.accompanyingCourse.id); resolve(store); })); diff --git a/src/Bundle/ChillPersonBundle/Resources/public/vuejs/AccompanyingCourse/store/modules/addPersons.js b/src/Bundle/ChillPersonBundle/Resources/public/vuejs/AccompanyingCourse/store/modules/addPersons.js index e65f94fa9..800846811 100644 --- a/src/Bundle/ChillPersonBundle/Resources/public/vuejs/AccompanyingCourse/store/modules/addPersons.js +++ b/src/Bundle/ChillPersonBundle/Resources/public/vuejs/AccompanyingCourse/store/modules/addPersons.js @@ -28,7 +28,6 @@ const getters = { // mutations const mutations = { setQuery(state, query) { - //console.log('q=', query); state.query = query; }, loadSuggestions(state, suggested) { @@ -38,9 +37,7 @@ const mutations = { state.selected = value; }, resetState(state, selected) { - //console.log('avant', state.selected); state.selected = state.selected.filter(value => value !== selected); - //console.log('après', state.selected); state.query = ""; state.suggested = []; }