From 98fb043e15e78e310a61c41fcd20894a1a7d572e Mon Sep 17 00:00:00 2001 From: konrad Date: Mon, 15 Jun 2020 16:47:17 +0000 Subject: [PATCH] Hide hints on start page if a user has tasks (#159) Format Add migration to Settings Merge branch 'master' into feature/hide-hints Hide hints on start page if a user has tasks Co-authored-by: kolaente Reviewed-on: https://kolaente.dev/vikunja/frontend/pulls/159 --- src/components/Home.vue | 19 +++++++++++-------- src/components/tasks/ShowTasks.vue | 18 ++++++++++-------- src/components/user/Settings.vue | 24 +++++++++++++++++++++++- src/store/index.js | 6 +++++- src/store/mutation-types.js | 1 + 5 files changed, 50 insertions(+), 18 deletions(-) diff --git a/src/components/Home.vue b/src/components/Home.vue index 0b59a7937..795fc63be 100644 --- a/src/components/Home.vue +++ b/src/components/Home.vue @@ -1,14 +1,16 @@ @@ -33,6 +35,7 @@ migratorsEnabled: state => state.config.availableMigrators !== null && state.config.availableMigrators.length > 0, authenticated: state => state.auth.authenticated, userInfo: state => state.auth.info, + hasTasks: state => state.hasTasks, }), } diff --git a/src/components/tasks/ShowTasks.vue b/src/components/tasks/ShowTasks.vue index 3f1e4e5f5..f717e2cfe 100644 --- a/src/components/tasks/ShowTasks.vue +++ b/src/components/tasks/ShowTasks.vue @@ -16,7 +16,8 @@