From 427a702bd40b45ac7dfb5dbc1e99970546dd044c Mon Sep 17 00:00:00 2001 From: kolaente Date: Sun, 17 Jan 2021 20:53:09 +0100 Subject: [PATCH] Add clearer call to action when no lists are available yet --- src/views/Home.vue | 35 +++++++++++++++++++++++++++++------ src/views/list/views/List.vue | 2 ++ src/views/tasks/ShowTasks.vue | 4 ++-- 3 files changed, 33 insertions(+), 8 deletions(-) diff --git a/src/views/Home.vue b/src/views/Home.vue index b960ef3219..2d9005b050 100644 --- a/src/views/Home.vue +++ b/src/views/Home.vue @@ -1,22 +1,31 @@ diff --git a/src/views/list/views/List.vue b/src/views/list/views/List.vue index 8b1ef69248..aba20f2e75 100644 --- a/src/views/list/views/List.vue +++ b/src/views/list/views/List.vue @@ -170,6 +170,7 @@ import {saveListView} from '@/helpers/saveListView' import Rights from '../../../models/rights.json' import {mapState} from 'vuex' import FilterPopup from '@/components/list/partials/filter-popup' +import {HAS_TASKS} from '@/store/mutation-types' export default { name: 'List', @@ -322,6 +323,7 @@ export default { this.taskService.update(task) .then(updatedTask => { this.updateTasks(updatedTask) + this.$store.commit(HAS_TASKS, true) }) .catch(e => { this.error(e, this) diff --git a/src/views/tasks/ShowTasks.vue b/src/views/tasks/ShowTasks.vue index a8951767bd..644959f116 100644 --- a/src/views/tasks/ShowTasks.vue +++ b/src/views/tasks/ShowTasks.vue @@ -8,8 +8,8 @@ > Show tasks without dates -

Current tasks

-

+

Current tasks

+

Tasks from