From 3eb010285da4b843813e11151cbafc4226e129b2 Mon Sep 17 00:00:00 2001 From: Dave Richer Date: Wed, 3 Apr 2024 13:01:56 -0400 Subject: [PATCH] - Update date picker presets Signed-off-by: Dave Richer --- .../task-upsert-modal/task-upsert-modal.component.jsx | 4 ++++ client/src/translations/en_us/common.json | 5 ++++- client/src/translations/es/common.json | 5 ++++- client/src/translations/fr/common.json | 5 ++++- 4 files changed, 16 insertions(+), 3 deletions(-) diff --git a/client/src/components/task-upsert-modal/task-upsert-modal.component.jsx b/client/src/components/task-upsert-modal/task-upsert-modal.component.jsx index 642e18299..853c89825 100644 --- a/client/src/components/task-upsert-modal/task-upsert-modal.component.jsx +++ b/client/src/components/task-upsert-modal/task-upsert-modal.component.jsx @@ -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 = () => { diff --git a/client/src/translations/en_us/common.json b/client/src/translations/en_us/common.json index 960479972..db650382e 100644 --- a/client/src/translations/en_us/common.json +++ b/client/src/translations/en_us/common.json @@ -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", diff --git a/client/src/translations/es/common.json b/client/src/translations/es/common.json index 5221925dc..c442aeebc 100644 --- a/client/src/translations/es/common.json +++ b/client/src/translations/es/common.json @@ -2116,7 +2116,10 @@ "next_week": "", "two_weeks": "", "three_weeks": "", - "one_month": "" + "one_month": "", + "today": "", + "tomorrow": "", + "three_months": "" }, "actions": { "new": "", diff --git a/client/src/translations/fr/common.json b/client/src/translations/fr/common.json index 366a33369..019790f3b 100644 --- a/client/src/translations/fr/common.json +++ b/client/src/translations/fr/common.json @@ -2116,7 +2116,10 @@ "next_week": "", "two_weeks": "", "three_weeks": "", - "one_month": "" + "one_month": "", + "today": "", + "tomorrow": "", + "three_months": "" }, "actions": { "new": "",