Fix remove notification message

This commit is contained in:
David Benque 2022-10-10 16:05:15 +01:00
parent e568027d14
commit 176f6ab594
1 changed files with 2 additions and 2 deletions

View File

@ -1933,11 +1933,11 @@ APP.recurrenceRule = {
h('span.cp-notif-empty', Messages.calendar_noNotification)
]);
Messages.calendar_addNotification = "Remove reminder"; // XXX
Messages.calendar_removeNotification = "Remove reminder"; // XXX
var addNotification = function (unit, value) {
var unitValue = (unit === "minutes") ? 1 : (unit === "hours" ? 60 : (60*24));
var del = h('button.btn.btn-danger-outline.small.fa.fa-times',
{'title': Messages.calendar_addNotification}
{'title': Messages.calendar_removeNotification}
);
var minutes = value * unitValue;
if ($list.find('[data-minutes="'+minutes+'"]').length) { return; }