From fddb74f107ae2d36100012e82fbb75c7b7be88a8 Mon Sep 17 00:00:00 2001 From: Julie Lenaerts Date: Wed, 9 Feb 2022 18:05:55 +0100 Subject: [PATCH] toggleConfidential reset to what it was before --- .../public/vuejs/AccompanyingCourse/store/index.js | 7 ++----- 1 file changed, 2 insertions(+), 5 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 70efe9720..63c94f37a 100644 --- a/src/Bundle/ChillPersonBundle/Resources/public/vuejs/AccompanyingCourse/store/index.js +++ b/src/Bundle/ChillPersonBundle/Resources/public/vuejs/AccompanyingCourse/store/index.js @@ -495,13 +495,10 @@ let initPromise = (root) => Promise.all([getScopesPromise(root), accompanyingCou }) }, toggleConfidential({ commit }, payload) { - const url = `/api/1.0/person/accompanying-course/${id}/confidential.json` + const url = `/api/1.0/person/accompanying-course/${id}.json` const body = { type: "accompanying_period", confidential: payload } - console.log('url', url) - console.log('body', body) - - return makeFetch('POST', url, body) + return makeFetch('PATCH', url, body) .then((response) => { commit('toggleConfidential', response); })