1
0

Make sure all empty pages have a call to action

This commit is contained in:
kolaente
2021-01-17 20:21:33 +01:00
parent ec4c941fb1
commit 2139d4d528
5 changed files with 32 additions and 13 deletions

View File

@ -11,12 +11,19 @@
Show Archived
</fancycheckbox>
<p class="has-text-centered has-text-grey mt-4" v-if="namespaces.length === 0">
You don't have any namespaces right now.
<router-link :to="{name: 'namespace.create'}">
Create a namespace.
</router-link>
</p>
<div :key="`n${n.id}`" class="namespace" v-for="n in namespaces">
<x-button
:to="{name: 'list.create', params: {id: n.id}}"
class="is-pulled-right"
type="secondary"
v-if="n.id > 0"
v-if="n.id > 0 && n.lists.length > 0"
icon="plus"
>
Create list
@ -29,6 +36,13 @@
</span>
</h1>
<p class="has-text-centered has-text-grey mt-4" v-if="n.lists.length === 0">
This namespace does not contain any lists.
<router-link :to="{name: 'list.create', params: {id: n.id}}">
Create a new list in this namespace.
</router-link>
</p>
<div class="lists">
<template v-for="l in n.lists">
<router-link