mirror of
https://gitlab.com/Chill-Projet/chill-bundles.git
synced 2025-06-13 05:44:24 +00:00
toggleConfidential reset to what it was before
This commit is contained in:
parent
ee817b1d62
commit
fddb74f107
@ -495,13 +495,10 @@ let initPromise = (root) => Promise.all([getScopesPromise(root), accompanyingCou
|
|||||||
})
|
})
|
||||||
},
|
},
|
||||||
toggleConfidential({ commit }, payload) {
|
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 }
|
const body = { type: "accompanying_period", confidential: payload }
|
||||||
|
|
||||||
console.log('url', url)
|
return makeFetch('PATCH', url, body)
|
||||||
console.log('body', body)
|
|
||||||
|
|
||||||
return makeFetch('POST', url, body)
|
|
||||||
.then((response) => {
|
.then((response) => {
|
||||||
commit('toggleConfidential', response);
|
commit('toggleConfidential', response);
|
||||||
})
|
})
|
||||||
|
Loading…
x
Reference in New Issue
Block a user