(js) Improve Component service & controller

Fixes #4527
This commit is contained in:
Francis Lachapelle
2018-08-22 14:52:44 -04:00
parent 9f654d223b
commit 3e5a486a1b
2 changed files with 197 additions and 223 deletions
@@ -1267,7 +1267,7 @@
delete component.completedDate;
// Verify alarm
if (component.startDate && this.$hasAlarm) {
if ((component.startDate || component.dueDate) && this.$hasAlarm) {
if (this.alarm.action && this.alarm.action == 'email' &&
!(this.attendees && this.attendees.length > 0)) {
// No attendees; email reminder must be sent to organizer only