Skip to content

OpenProject is the leading open source project management software for product, project and portfolio management. A powerful Jira alternative with agile planning, issue tracking, roadmaps, Gantt charts, time tracking, collaboration features, and more. Available on premises or in the cloud. ⭐ Star us on GitHub

1.0 KB
Raw Blame
export function reminderAvailableTimeframes():{ value:string, title:string }[] {
  return [
    {
      value: 'PT0S',
      title: window.I18n.t('js.notifications.settings.reminders.timeframes.normal.PT0S'),
    },
    {
      value: 'P1D',
      title: window.I18n.t('js.notifications.settings.reminders.timeframes.normal.P1D'),
    },
    {
      value: 'P3D',
      title: window.I18n.t('js.notifications.settings.reminders.timeframes.normal.P3D'),
    },
    {
      value: 'P7D',
      title: window.I18n.t('js.notifications.settings.reminders.timeframes.normal.P7D'),
    },
  ];
}

export function overDueReminderTimes():{ value:string, title:string }[] {
  return [
    {
      value: 'P1D',
      title: window.I18n.t('js.notifications.settings.reminders.timeframes.overdue.P1D'),
    },
    {
      value: 'P3D',
      title: window.I18n.t('js.notifications.settings.reminders.timeframes.overdue.P3D'),
    },
    {
      value: 'P7D',
      title: window.I18n.t('js.notifications.settings.reminders.timeframes.overdue.P7D'),
    },
  ];
}