mirror of
https://gitlab.com/Chill-Projet/chill-bundles.git
synced 2025-06-07 18:44:08 +00:00
endpoint DELETE participation works !
This commit is contained in:
parent
503293a359
commit
8915c42008
@ -28,8 +28,6 @@ let initPromise = getAccompanyingCourse(id)
|
||||
},
|
||||
closeParticipation(state, { participation, payload }) {
|
||||
console.log('### mutation: close item', { participation, payload });
|
||||
// temporaire, le temps que le backend ajoute la enddate
|
||||
participation.endDate = { datetime: "2021-05-06T10:49:00+0200" };
|
||||
// trouve dans le state le payload et le supprime du state
|
||||
state.accompanyingCourse.participations = state.accompanyingCourse.participations.filter(participation => participation !== payload);
|
||||
// pousse la participation
|
||||
|
Loading…
x
Reference in New Issue
Block a user