From 2139d4d52866a9ecc714cbe63fe4976646910622 Mon Sep 17 00:00:00 2001 From: kolaente Date: Sun, 17 Jan 2021 20:21:33 +0100 Subject: [PATCH] Make sure all empty pages have a call to action --- src/styles/components/list.scss | 6 ------ src/views/labels/ListLabels.vue | 9 ++++++--- src/views/list/views/List.vue | 7 +++++-- src/views/namespaces/ListNamespaces.vue | 16 +++++++++++++++- src/views/teams/ListTeams.vue | 7 ++++++- 5 files changed, 32 insertions(+), 13 deletions(-) diff --git a/src/styles/components/list.scss b/src/styles/components/list.scss index a2b2fb0d0..49ae6190f 100644 --- a/src/styles/components/list.scss +++ b/src/styles/components/list.scss @@ -156,9 +156,3 @@ .list-namespace-title { color: $grey; } - -.list-is-empty-notice { - text-align: center; - color: $grey; - font-style: italic; -} diff --git a/src/views/labels/ListLabels.vue b/src/views/labels/ListLabels.vue index 3eef931e6..b5ef056f2 100644 --- a/src/views/labels/ListLabels.vue +++ b/src/views/labels/ListLabels.vue @@ -10,11 +10,14 @@

Manage labels

-

+

Click on a label to edit it. You can edit all labels you created, you can use all labels which are associated with a task to whose - list - you have access. + list you have access. +

+

+ You currently do not have any labels. + Create a new label.

diff --git a/src/views/list/views/List.vue b/src/views/list/views/List.vue index d08c4a726..8b1ef6924 100644 --- a/src/views/list/views/List.vue +++ b/src/views/list/views/List.vue @@ -61,7 +61,9 @@ placeholder="Add a new task..." type="text" v-focus - v-model="newTaskText"/> + v-model="newTaskText" + ref="newTaskInput" + /> @@ -81,8 +83,9 @@

-

+

This list is currently empty. + Create a new task.

diff --git a/src/views/namespaces/ListNamespaces.vue b/src/views/namespaces/ListNamespaces.vue index d8934d389..bd9addaee 100644 --- a/src/views/namespaces/ListNamespaces.vue +++ b/src/views/namespaces/ListNamespaces.vue @@ -11,12 +11,19 @@ Show Archived +

+ You don't have any namespaces right now. + + Create a namespace. + +

+
Create list @@ -29,6 +36,13 @@ +

+ This namespace does not contain any lists. + + Create a new list in this namespace. + +

+