Merge branch 'master' into feature-gdpr-no-caldav

This commit is contained in:
smizrahi
2024-01-09 08:44:16 +01:00
11 changed files with 55 additions and 28 deletions
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
@@ -461,7 +461,9 @@
// Trusted content that can be compiled (Angularly-speaking)
part.compile = true;
parts.push(part);
if (!Object.hasOwn(part, 'shouldDisplayAttachment') || 1 == part.shouldDisplayAttachment ) {
parts.push(part);
}
}
else {
part.html = true;
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
@@ -798,7 +798,6 @@
*/
Component.prototype.canRemindAttendeesByEmail = function() {
return this.alarm.action == 'email' &&
this.isEditable &&
this.attendees && this.attendees.length > 0;
};
@@ -14,6 +14,7 @@
this.calendarService = Calendar;
this.service = Component;
this.component = stateComponent;
this.isDeleting = false;
// Put organizer in an array to display it as an mdChip
this.organizer = [stateComponent.organizer];
@@ -144,17 +145,26 @@
};
this.deleteOccurrence = function () {
this.component.remove(true).then(function() {
$rootScope.$emit('calendars:list');
$mdDialog.hide();
});
if (!this.isDeleting) {
this.isDeleting = true;
this.component.remove(true).then(function() {
$rootScope.$emit('calendars:list');
$mdDialog.hide();
vm.isDeleting = false;
});
}
};
this.deleteAllOccurrences = function () {
this.component.remove().then(function() {
$rootScope.$emit('calendars:list');
$mdDialog.hide();
});
if (!this.isDeleting) {
this.isDeleting = true;
this.component.remove().then(function () {
$rootScope.$emit('calendars:list');
$mdDialog.hide();
vm.isDeleting = false;
});
}
};
this.toggleRawSource = function ($event) {