fix(calendar(js)): conditional display of edit and delete buttons

This commit is contained in:
Francis Lachapelle committed 2022-08-15 15:31:19 -04:00
1 parent 3f7fef0788
commit 16459c7b3d
11 files changed
+57 -40

No files matched your search

@@ -278,6 +278,13 @@
this.showRecurrenceEditor = true;
};
this.destinationCalendars = function () {
if (this.component.isErasable)
return Calendar.$findAll(null, true, this.component.pid);
else
return [Calendar.$get(this.component.pid)];
};
this.changeCalendar = function () {
var updateRequired = (this.component.attendees && this.component.attendees.length > 0);
if (updateRequired)