[Calendar] Creation event

This commit is contained in:
Haja 2025-04-24 17:31:50 +03:00
parent 4ca58c2668
commit 92d6bc863e

View File

@ -321,13 +321,20 @@ const actions = {
return
// TODO - catch conflicts
}
const calendar = context.getters.getCalendarById(calendarObject.calendarId)
let icsValue = calendarObject.calendarComponent.toICS();
if(eventComponent != null){
let foldedComment = ""
if(eventComponent.comment != null) {
const escapedComment = escapeICSField(eventComponent.comment)
foldedComment = foldICSLines(escapedComment)
}
const customKeyValue = {
"CLIENT": eventComponent.client,
"EMBALMER": eventComponent.embalmer,
"COMMENT": eventComponent.comment,
"COMMENT": foldedComment,
"ISPRIVATE": eventComponent.isPrivate ? "1" : "0",
"ISCALENDARPENDING": eventComponent.isCalendarPending ? "1" : "0",
"ABSENCETYPE": eventComponent.absenceType ?? ''