fix(calendar): Add confirmation box when dismissing calendar event edition with background click, only if the event is in edition. Fixes #5585.

This commit is contained in:
smizrahi
2023-03-14 16:20:26 +01:00
parent 8bd97d1464
commit 64d817ab0d
5 changed files with 69 additions and 1 deletions
@@ -216,6 +216,7 @@
this.categories = {};
this.showRecurrenceEditor = this.component.$hasCustomRepeat;
this.showAttendeesEditor = this.component.attendees && this.component.attendees.length;
this.isFullscreen = false;
if (this.component.type == 'appointment') {
this.component.initAttendees();
@@ -296,6 +297,10 @@
this.component.$attendees.initOrganizer(Calendar.$get(this.component.destinationCalendar));
};
this.toggleFullscreen = function() {
vm.isFullscreen = !vm.isFullscreen;
}
// Autocomplete cards for attendees
this.cardFilter = function ($query) {
return AddressBook.$filterAll($query);