Loading src/store/calendarObjectInstance.js +8 −0 Original line number Diff line number Diff line Loading @@ -320,6 +320,14 @@ const mutations = { * @param {string} data.description New description to set */ changeDescription(state, { calendarObjectInstance, description }) { // ALTREP parameter is not set by NC calendar, but by CalDAV clients like Thunderbird. // To avoid inconsistencies, remove ALTREP parameter upon modification. const descriptionProperty = calendarObjectInstance.eventComponent.getFirstProperty('Description') if (descriptionProperty) { if (descriptionProperty.hasParameter('ALTREP')) { descriptionProperty.deleteParameter('ALTREP') } } calendarObjectInstance.eventComponent.description = description calendarObjectInstance.description = description }, Loading Loading
src/store/calendarObjectInstance.js +8 −0 Original line number Diff line number Diff line Loading @@ -320,6 +320,14 @@ const mutations = { * @param {string} data.description New description to set */ changeDescription(state, { calendarObjectInstance, description }) { // ALTREP parameter is not set by NC calendar, but by CalDAV clients like Thunderbird. // To avoid inconsistencies, remove ALTREP parameter upon modification. const descriptionProperty = calendarObjectInstance.eventComponent.getFirstProperty('Description') if (descriptionProperty) { if (descriptionProperty.hasParameter('ALTREP')) { descriptionProperty.deleteParameter('ALTREP') } } calendarObjectInstance.eventComponent.description = description calendarObjectInstance.description = description }, Loading