From 995dec33ea2fa72e1c988c237127c0cf6d5b1d5d Mon Sep 17 00:00:00 2001 From: kolaente Date: Mon, 11 May 2020 16:52:58 +0200 Subject: [PATCH] Add list title in overview page --- src/components/tasks/ShowTasks.vue | 2 +- .../tasks/reusable/relatedTasks.vue | 2 +- .../tasks/reusable/singleTaskInList.vue | 15 ++++++++++- src/store/index.js | 4 ++- src/store/modules/lists.js | 25 +++++++++++++++++++ src/store/modules/namespaces.js | 21 ++++++++-------- src/styles/components/tasks.scss | 7 ++++++ 7 files changed, 62 insertions(+), 14 deletions(-) create mode 100644 src/store/modules/lists.js diff --git a/src/components/tasks/ShowTasks.vue b/src/components/tasks/ShowTasks.vue index 02be4a0b..98006a27 100644 --- a/src/components/tasks/ShowTasks.vue +++ b/src/components/tasks/ShowTasks.vue @@ -9,7 +9,7 @@
- +
diff --git a/src/components/tasks/reusable/relatedTasks.vue b/src/components/tasks/reusable/relatedTasks.vue index 720ed304..2a61e9c2 100644 --- a/src/components/tasks/reusable/relatedTasks.vue +++ b/src/components/tasks/reusable/relatedTasks.vue @@ -51,7 +51,7 @@ - {{ $store.getters['namespaces/getListById'](t.listId) === null ? '' : $store.getters['namespaces/getListById'](t.listId).title }} > + {{ $store.getters['lists/getListById'](t.listId) === null ? '' : $store.getters['lists/getListById'](t.listId).title }} > {{t.text}} diff --git a/src/components/tasks/reusable/singleTaskInList.vue b/src/components/tasks/reusable/singleTaskInList.vue index 364efab6..370e3ff5 100644 --- a/src/components/tasks/reusable/singleTaskInList.vue +++ b/src/components/tasks/reusable/singleTaskInList.vue @@ -2,6 +2,15 @@ + + + {{ $store.getters['lists/getListById'](task.listId).title }} + +