mirror of
https://gitlab.com/Chill-Projet/chill-bundles.git
synced 2025-08-24 00:23:50 +00:00
send first calendar on ms graph
This commit is contained in:
@@ -172,18 +172,13 @@ export default {
|
||||
},
|
||||
setMainUser({commit, dispatch, state}, mainUser) {
|
||||
console.log('setMainUser', mainUser);
|
||||
if (state.activity.mainUser.id !== mainUser.id) {
|
||||
let mainUserInput = document.getElementById("chill_activitybundle_activity_mainUser");
|
||||
mainUserInput.value = Number(mainUser.id);
|
||||
|
||||
if (state.activity.calendarRange !== null || state.activity.startDate !== null || state.acdtivity.endDate !== null) {
|
||||
dispatch('associateCalendarToRange', { range: null });
|
||||
}
|
||||
let mainUserInput = document.getElementById("chill_activitybundle_activity_mainUser");
|
||||
mainUserInput.value = Number(mainUser.id);
|
||||
|
||||
return dispatch('associateCalendarToRange', { range: null }).then(() => {
|
||||
commit('setMainUser', mainUser);
|
||||
}
|
||||
|
||||
return Promise.resolve();
|
||||
});
|
||||
},
|
||||
|
||||
// Location
|
||||
|
Reference in New Issue
Block a user