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

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

show warning when a user has email reminders, because they are not implemented...


show warning when a user has email reminders, because they are not implemented in the CalDAV server yet

Signed-off-by: default avatarGeorg Ehrke <developer@georgehrke.com>
parent 5e2b4141
Loading
Loading
Loading
Loading
+12 −0
Original line number Diff line number Diff line
@@ -274,4 +274,16 @@ app.controller('VAlarmController', function($scope) {
			parseInt(alarm.editor.repeatNValue) *
			parseInt(alarm.editor.repeatTimeUnit);
	};

	$scope.hasAnyEmailReminders = function() {
		let hasEmail = false;

		angular.forEach($scope.properties.alarm, function(alarm) {
			if (alarm.action.value === 'EMAIL') {
				hasEmail = true;
			}
		});

		return hasEmail;
	};
});
+3 −0
Original line number Diff line number Diff line
@@ -140,6 +140,9 @@
		</li>
	</ul>
</div>
<em class="events-fieldset-interior" ng-show="hasAnyEmailReminders()">
	<?php p($l->t('Email reminders have not been implemented in the CalDAV server yet, hence no email reminders will be send.')); ?>
</em>
<div class="event-fieldset-interior">
	<button id="addreminders" ng-click="add()" class="btn event-button button" type="button">
		<?php p($l->t('Add')); ?>