Skip to content

Commit 3e73d15

Browse files
Anthony KinseyAnthony Kinsey
authored andcommitted
feat: add message when no boards are present
1 parent 77100ae commit 3e73d15

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

src/views/Boards.vue

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,9 @@
1010
<router-link :to="{ name: 'Watchlist' }" class="button">Watchlist</router-link>
1111
<router-link :to="{ name: 'ThreadsPostedIn' }" class="button">Threads Posted In</router-link>
1212
</div>
13-
13+
<div v-if="!boardData?.data?.boards?.length">
14+
<h4 class="centered-text">There are currently no boards, an administrator must add boards before threads can be created</h4>
15+
</div>
1416
<div v-if="boardData.data">
1517
<div class="category" v-for="cat in boardData.data.boards" :key="cat.id">
1618
<!-- Category Title -->

0 commit comments

Comments
 (0)