[Calendar] Creation event
This commit is contained in:
parent
4ca58c2668
commit
92d6bc863e
@ -321,13 +321,20 @@ const actions = {
|
|||||||
return
|
return
|
||||||
// TODO - catch conflicts
|
// TODO - catch conflicts
|
||||||
}
|
}
|
||||||
|
|
||||||
const calendar = context.getters.getCalendarById(calendarObject.calendarId)
|
const calendar = context.getters.getCalendarById(calendarObject.calendarId)
|
||||||
let icsValue = calendarObject.calendarComponent.toICS();
|
let icsValue = calendarObject.calendarComponent.toICS();
|
||||||
if(eventComponent != null){
|
if(eventComponent != null){
|
||||||
|
let foldedComment = ""
|
||||||
|
if(eventComponent.comment != null) {
|
||||||
|
const escapedComment = escapeICSField(eventComponent.comment)
|
||||||
|
foldedComment = foldICSLines(escapedComment)
|
||||||
|
}
|
||||||
|
|
||||||
const customKeyValue = {
|
const customKeyValue = {
|
||||||
"CLIENT": eventComponent.client,
|
"CLIENT": eventComponent.client,
|
||||||
"EMBALMER": eventComponent.embalmer,
|
"EMBALMER": eventComponent.embalmer,
|
||||||
"COMMENT": eventComponent.comment,
|
"COMMENT": foldedComment,
|
||||||
"ISPRIVATE": eventComponent.isPrivate ? "1" : "0",
|
"ISPRIVATE": eventComponent.isPrivate ? "1" : "0",
|
||||||
"ISCALENDARPENDING": eventComponent.isCalendarPending ? "1" : "0",
|
"ISCALENDARPENDING": eventComponent.isCalendarPending ? "1" : "0",
|
||||||
"ABSENCETYPE": eventComponent.absenceType ?? ''
|
"ABSENCETYPE": eventComponent.absenceType ?? ''
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user