- Update date picker presets

Signed-off-by: Dave Richer <dave@imexsystems.ca>
This commit is contained in:
Dave Richer
2024-04-03 13:01:56 -04:00
parent 2b172f9999
commit 3eb010285d
4 changed files with 16 additions and 3 deletions

View File

@@ -36,10 +36,14 @@ export function TaskUpsertModalComponent({
const {t} = useTranslation();
const datePickerPresets = [
{label: t('tasks.date_presets.today'), value: dayjs()},
{label: t('tasks.date_presets.tomorrow'), value: dayjs().add(1, 'day')},
{label: t('tasks.date_presets.next_week'), value: dayjs().add(1, 'week')},
{label: t('tasks.date_presets.two_weeks'), value: dayjs().add(2, 'weeks')},
{label: t('tasks.date_presets.three_weeks'), value: dayjs().add(3, 'weeks')},
{label: t('tasks.date_presets.one_month'), value: dayjs().add(1, 'month')},
{label: t('tasks.date_presets.three_months'), value: dayjs().add(3, 'month')},
];
const clearRelations = () => {

View File

@@ -2116,7 +2116,10 @@
"next_week": "Next Week",
"two_weeks": "Two Weeks",
"three_weeks": "Three Weeks",
"one_month": "One Month"
"one_month": "One Month",
"today": "Today",
"tomorrow": "Tomorrow",
"three_months": "Three Months"
},
"actions": {
"new": "New Task",

View File

@@ -2116,7 +2116,10 @@
"next_week": "",
"two_weeks": "",
"three_weeks": "",
"one_month": ""
"one_month": "",
"today": "",
"tomorrow": "",
"three_months": ""
},
"actions": {
"new": "",

View File

@@ -2116,7 +2116,10 @@
"next_week": "",
"two_weeks": "",
"three_weeks": "",
"one_month": ""
"one_month": "",
"today": "",
"tomorrow": "",
"three_months": ""
},
"actions": {
"new": "",