Revert reminder message formatting simplification

pull/5914/head
christianbeeznst 2 weeks ago
parent 201bf0bb87
commit 4dfa71723d
  1. 13
      assets/vue/composables/calendar/calendarReminders.js

@ -14,16 +14,15 @@ export function useCalendarReminders() {
* @returns {string}
*/
function decodeDateInterval(reminder) {
let unit;
if (reminder.period === "i") {
unit = t("minutes before");
} else if (reminder.period === "h") {
unit = t("hours before");
} else {
unit = t("days before");
return t("%d minutes before", [reminder.count])
}
return `${reminder.count} ${unit}`;
if (reminder.period === "h") {
return t("%d hours before", [reminder.count])
}
return t("%d days before", [reminder.count])
}
return {

Loading…
Cancel
Save