mirror of
https://github.com/inverse-inc/sogo.git
synced 2026-03-19 21:35:58 +00:00
@@ -279,9 +279,14 @@
|
||||
};
|
||||
|
||||
this.destinationCalendars = function () {
|
||||
if (this.component.isErasable)
|
||||
if (this.component.isNew)
|
||||
// New component, return all writable calendars
|
||||
return Calendar.$findAll(null, true);
|
||||
else if (this.component.isErasable)
|
||||
// Movable component, return all writable calendars including current one
|
||||
return Calendar.$findAll(null, true, this.component.pid);
|
||||
else
|
||||
// Component can't be moved
|
||||
return [Calendar.$get(this.component.pid)];
|
||||
};
|
||||
|
||||
|
||||
Reference in New Issue
Block a user