[Calendar] Update plusieur fois
This commit is contained in:
parent
10b6cb9837
commit
20606f825c
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
@ -1802,7 +1802,8 @@ const actions = {
|
|||||||
if (isForkedItem && eventComponent.canCreateRecurrenceExceptions()) {
|
if (isForkedItem && eventComponent.canCreateRecurrenceExceptions()) {
|
||||||
[original, fork] = eventComponent.createRecurrenceException(thisAndAllFuture)
|
[original, fork] = eventComponent.createRecurrenceException(thisAndAllFuture)
|
||||||
}
|
}
|
||||||
await dispatch('updateCalendarObject', { calendarObject })
|
|
||||||
|
await dispatch('updateCalendarObject', { calendarObject, eventComponent })
|
||||||
|
|
||||||
if (original !== null && fork !== null && original.root !== fork.root) {
|
if (original !== null && fork !== null && original.root !== fork.root) {
|
||||||
await dispatch('createCalendarObjectFromFork', {
|
await dispatch('createCalendarObjectFromFork', {
|
||||||
|
|||||||
@ -223,8 +223,11 @@ const actions = {
|
|||||||
* @param {CalendarObject} data.calendarObject Calendar-object to delete
|
* @param {CalendarObject} data.calendarObject Calendar-object to delete
|
||||||
* @return {Promise<void>}
|
* @return {Promise<void>}
|
||||||
*/
|
*/
|
||||||
async updateCalendarObject(context, { calendarObject }) {
|
async updateCalendarObject(context, { calendarObject, eventComponent }) {
|
||||||
let eventComponent = calendarObject.calendarComponent.getFirstComponent('VEVENT');
|
if(!eventComponent) {
|
||||||
|
eventComponent = calendarObject.calendarComponent.getFirstComponent('VEVENT');
|
||||||
|
}
|
||||||
|
|
||||||
if (calendarObject.existsOnServer) {
|
if (calendarObject.existsOnServer) {
|
||||||
let icsValue = calendarObject.calendarComponent.toICS();
|
let icsValue = calendarObject.calendarComponent.toICS();
|
||||||
|
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user