From 5d995a275874c1a39d0a0afa044948ac5b32b461 Mon Sep 17 00:00:00 2001 From: kolaente Date: Sun, 22 Nov 2020 18:05:25 +0100 Subject: [PATCH] Move next week/next month task overview pages into a single "Upcoming" page and allow toggle --- src/components/home/navigation.vue | 12 ++---------- src/router/index.js | 2 +- src/views/tasks/ShowTasks.vue | 14 ++++++++++++++ src/views/tasks/ShowTasksInRange.vue | 19 +++++-------------- 4 files changed, 22 insertions(+), 25 deletions(-) diff --git a/src/components/home/navigation.vue b/src/components/home/navigation.vue index ae8c8ef7..314c194f 100644 --- a/src/components/home/navigation.vue +++ b/src/components/home/navigation.vue @@ -14,19 +14,11 @@
  • - - - - - Next Week - -
  • -
  • - + - Next Month + Upcoming
  • diff --git a/src/router/index.js b/src/router/index.js index 981bd97f..ed6e63fc 100644 --- a/src/router/index.js +++ b/src/router/index.js @@ -181,7 +181,7 @@ export default new Router({ component: TaskDetailView, }, { - path: '/tasks/by/:type', + path: '/tasks/by/upcoming', name: 'tasks.range', component: ShowTasksInRangeComponent, }, diff --git a/src/views/tasks/ShowTasks.vue b/src/views/tasks/ShowTasks.vue index 42855b00..ee18d08b 100644 --- a/src/views/tasks/ShowTasks.vue +++ b/src/views/tasks/ShowTasks.vue @@ -29,6 +29,10 @@ v-model="cEndDate" /> +
    + Next Week + Next Month +