mirror of
https://gitlab.com/Chill-Projet/chill-bundles.git
synced 2025-08-21 23:23:51 +00:00
fetch postParticipation request, catch fetch error, store mutation+action
This commit is contained in:
@@ -54,7 +54,7 @@ export default {
|
||||
methods: {
|
||||
addPerson() {
|
||||
console.log('[wip] opening add persons modal');
|
||||
this.$store.commit('addParticipation', {
|
||||
this.$store.dispatch('addParticipation', {
|
||||
id: SimpsonId++,
|
||||
person: { firstName: "Lisa", lastName: "Simpson", id: SimpsonId },
|
||||
startDate: { datetime: "1975-09-15T00:00:00+0100" },
|
||||
@@ -62,7 +62,7 @@ export default {
|
||||
})
|
||||
},
|
||||
removePerson(item) {
|
||||
this.$store.commit('removeParticipation', item)
|
||||
this.$store.dispatch('removeParticipation', item)
|
||||
},
|
||||
savePersons() {
|
||||
console.log('[wip] saving persons');
|
||||
|
Reference in New Issue
Block a user