mirror of
https://github.com/romancm/gamebrary
synced 2024-11-14 23:47:08 +00:00
hide public tag in public page
This commit is contained in:
parent
b74464dcab
commit
5e3156940c
1 changed files with 5 additions and 1 deletions
|
@ -7,7 +7,7 @@
|
|||
<header class="text-small py-1 px-2 d-flex align-items-center justify-content-between">
|
||||
<span class="mr-1 text-muted mb-1">{{ board.name }}</span>
|
||||
|
||||
<b-button v-if="board.isPublic" class="bg-warning text-white p-0 px-1" size="sm">
|
||||
<b-button v-if="showPublicIndicator" class="bg-warning text-white p-0 px-1" size="sm">
|
||||
Public
|
||||
</b-button>
|
||||
</header>
|
||||
|
@ -75,6 +75,10 @@ export default {
|
|||
},
|
||||
|
||||
computed: {
|
||||
showPublicIndicator() {
|
||||
return this.$route.name !== 'explore' && this.board?.isPublic;
|
||||
},
|
||||
|
||||
isListType() {
|
||||
return this.board?.type === BOARD_TYPE_LIST;
|
||||
},
|
||||
|
|
Loading…
Reference in a new issue