mirror of
https://gitlab.com/Chill-Projet/chill-bundles.git
synced 2025-08-21 07:03:49 +00:00
rename methods, improve logic
This commit is contained in:
@@ -28,35 +28,35 @@ const store = createStore({
|
||||
mutations: {
|
||||
|
||||
// SocialIssueAcc
|
||||
addSocialIssueInList(state, issue) {
|
||||
addIssueInList(state, issue) {
|
||||
console.log('add list issue', issue.id);
|
||||
state.activity.accompanyingPeriod.socialIssues.push(issue);
|
||||
},
|
||||
addSocialIssueSelected(state, issue) {
|
||||
addIssueSelected(state, issue) {
|
||||
console.log('add selected issue', issue.id);
|
||||
state.activity.socialIssues.push(issue);
|
||||
},
|
||||
updateSocialIssuesSelected(state, issues) {
|
||||
updateIssuesSelected(state, issues) {
|
||||
console.log('update selected issues', issues);
|
||||
state.activity.socialIssues = issues;
|
||||
},
|
||||
updateSocialIssuesOther(state, payload) {
|
||||
updateIssuesOther(state, payload) {
|
||||
console.log('update other issues');
|
||||
state.socialIssuesOther = payload;
|
||||
},
|
||||
removeSocialIssueInOther(state, issue) {
|
||||
removeIssueInOther(state, issue) {
|
||||
console.log('remove other issue', issue.id);
|
||||
state.socialIssuesOther = state.socialIssuesOther.filter(item => item !== issue);
|
||||
},
|
||||
resetSocialActionList(state) {
|
||||
resetActionsList(state) {
|
||||
console.log('reset actions list');
|
||||
state.socialActionsList = [];
|
||||
},
|
||||
addSocialActionInList(state, action) {
|
||||
addActionInList(state, action) {
|
||||
console.log('add list action', action.id);
|
||||
state.socialActionsList.push(action);
|
||||
},
|
||||
updateSocialActionsSelected(state, actions) {
|
||||
updateActionsSelected(state, actions) {
|
||||
console.log('update selected actions', actions);
|
||||
state.activity.socialActions = actions;
|
||||
},
|
||||
@@ -110,14 +110,14 @@ const store = createStore({
|
||||
}
|
||||
},
|
||||
actions: {
|
||||
addSocialIssueSelected({ commit }, issue) {
|
||||
commit('addSocialIssueSelected', issue);
|
||||
addIssueSelected({ commit }, issue) {
|
||||
commit('addIssueSelected', issue);
|
||||
},
|
||||
updateSocialIssuesSelected({ commit }, payload) {
|
||||
commit('updateSocialIssuesSelected', payload);
|
||||
updateIssuesSelected({ commit }, payload) {
|
||||
commit('updateIssuesSelected', payload);
|
||||
},
|
||||
updateSocialActionsSelected({ commit }, payload) {
|
||||
commit('updateSocialActionsSelected', payload);
|
||||
updateActionsSelected({ commit }, payload) {
|
||||
commit('updateActionsSelected', payload);
|
||||
},
|
||||
addPersonsInvolved({ commit }, payload) {
|
||||
//console.log('### action addPersonsInvolved', payload.result.type);
|
||||
|
Reference in New Issue
Block a user