Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Unverified Commit c07b58c2 authored by Georg Ehrke's avatar Georg Ehrke
Browse files

Always allow to edit an alarm if it's in absolute time

parent a4834ccf
Loading
Loading
Loading
Loading
+5 −0
Original line number Diff line number Diff line
@@ -209,6 +209,11 @@ export default {
			locale: (state) => state.settings.momentLocale,
		}),
		canEdit() {
			// Always allow editing if this alarm has an absolute trigger
			if (this.isAbsoluteAlarm()) {
				return true
			}

			// We don't allow editing when the alarm is
			// related to the event's end
			if (!this.alarm.relativeIsRelatedToStart) {