mirror of
https://gitlab.com/Chill-Projet/chill-bundles.git
synced 2025-08-21 07:03:49 +00:00
AddPersons in activity
* modal button dont submit all form * addNewPersons action mutation loop ready
This commit is contained in:
@@ -13,17 +13,18 @@ const store = createStore({
|
||||
|
||||
},
|
||||
mutations: {
|
||||
addPerson(state, payload) {
|
||||
|
||||
addPersonsInvolved(state, payload) {
|
||||
console.log('### mutation addPersonsInvolved', payload);
|
||||
}
|
||||
},
|
||||
actions: {
|
||||
addPerson() {
|
||||
addPersonsInvolved({ commit }, payload) {
|
||||
console.log('### action addPersonsInvolved', payload);
|
||||
//let el = document.getElementById('form['activity']['xxx']['xxxx']');
|
||||
//let option = document.createElement('option');
|
||||
//option.value = person.id;
|
||||
//el.appendChild(option);
|
||||
commit('addPerson', payload)
|
||||
commit('addPersonsInvolved', payload)
|
||||
}
|
||||
}
|
||||
});
|
||||
|
Reference in New Issue
Block a user