mirror of
https://gitlab.com/Chill-Projet/chill-bundles.git
synced 2025-06-12 13:24:25 +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) {
|
||||
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);
|
||||
})
|
||||
|
Loading…
x
Reference in New Issue
Block a user