From 7408c37dec3c2809a3a58054dd43242409566729 Mon Sep 17 00:00:00 2001 From: kolaente Date: Tue, 28 Dec 2021 23:50:04 +0100 Subject: [PATCH] chore: cleanup and reorganize the date selection --- src/i18n/lang/en.json | 5 +- src/views/tasks/ShowTasks.vue | 138 ++++++++++++++++++---------------- 2 files changed, 77 insertions(+), 66 deletions(-) diff --git a/src/i18n/lang/en.json b/src/i18n/lang/en.json index 35dbec8f8..2507ad7a0 100644 --- a/src/i18n/lang/en.json +++ b/src/i18n/lang/en.json @@ -532,9 +532,8 @@ "titleCurrent": "Current Tasks", "titleDates": "Tasks from {from} until {to}", "noDates": "Show tasks without dates", - "current": "Current tasks", - "from": "Tasks from", - "until": "until", + "fromuntil": "Tasks from {from} until {until}", + "select": "Select a range:", "today": "Today", "nextWeek": "Next Week", "nextMonth": "Next Month", diff --git a/src/views/tasks/ShowTasks.vue b/src/views/tasks/ShowTasks.vue index d639d1133..89a7a182a 100644 --- a/src/views/tasks/ShowTasks.vue +++ b/src/views/tasks/ShowTasks.vue @@ -8,37 +8,34 @@ > {{ $t('task.show.noDates') }} -

- {{ $t('task.show.current') }} +

+ {{ pageTitle }}

-

- {{ $t('task.show.from') }} + +

+ {{ $t('task.show.select') }} - {{ $t('task.show.until') }} - -

-
- {{ $t('task.show.today') }} - {{ $t('task.show.nextWeek') }} - {{ $t('task.show.nextMonth') }} +

+
+ + {{ $t('task.show.today') }} + + + {{ $t('task.show.nextWeek') }} + + + {{ $t('task.show.nextMonth') }} +
@@ -56,16 +53,20 @@