mirror of
https://github.com/inverse-inc/sogo.git
synced 2026-05-22 03:45:25 +00:00
fix(calendar(js)): conditional display of edit and delete buttons
This commit is contained in:
@@ -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)
|
||||
|
||||
Reference in New Issue
Block a user