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

This commit is contained in:
Francis Lachapelle
2022-08-15 15:31:19 -04:00
parent 3f7fef0788
commit 16459c7b3d
11 changed files with 57 additions and 40 deletions
@@ -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)