mirror of
https://gitlab.com/Chill-Projet/chill-bundles.git
synced 2025-08-23 16:13:50 +00:00
rdv: add main user in fullcalendar form
This commit is contained in:
@@ -30,7 +30,7 @@ const currentEvent = {
|
||||
start: window.startDate,
|
||||
end: window.endDate
|
||||
}],
|
||||
id: -1
|
||||
id: window.mainUser
|
||||
};
|
||||
|
||||
export default {
|
||||
@@ -45,7 +45,8 @@ export default {
|
||||
errorMsg: [],
|
||||
users: {
|
||||
loaded: [],
|
||||
selected: []
|
||||
selected: [],
|
||||
logged: null
|
||||
},
|
||||
calendarEvents: {
|
||||
loaded: [],
|
||||
@@ -88,10 +89,14 @@ export default {
|
||||
}
|
||||
},
|
||||
onDateSelect(payload) {
|
||||
Object.assign(payload, {users: this.users});
|
||||
this.$store.dispatch('createEvent', payload);
|
||||
},
|
||||
onEventChange(payload) {
|
||||
console.log(payload.event);
|
||||
console.log(payload.event.extendedProps);
|
||||
console.log(payload.event.source);
|
||||
console.log(payload.event.source.id);
|
||||
console.log(this.calendarOptions.eventSources)
|
||||
this.$store.dispatch('updateEvent', payload);
|
||||
},
|
||||
|
Reference in New Issue
Block a user