mirror of
https://github.com/romancm/gamebrary
synced 2024-11-23 19:53:14 +00:00
limit visibility for wip features
This commit is contained in:
parent
02782dc00e
commit
6df8da6f6e
1 changed files with 21 additions and 6 deletions
|
@ -71,6 +71,19 @@
|
|||
</b-button>
|
||||
|
||||
<b-button
|
||||
v-if="dev"
|
||||
v-for="{ name, title, icon } in betaFeatures"
|
||||
:key="name"
|
||||
:variant="name === routeName ? 'primary' : 'dark'"
|
||||
block
|
||||
class="text-left"
|
||||
:to="{ name }"
|
||||
>
|
||||
<i :class="`${icon} fa-fw`" aria-hidden /> {{ title }}
|
||||
</b-button>
|
||||
|
||||
<b-button
|
||||
v-if="dev"
|
||||
:variant="routeName === 'profile' ? 'primary' : 'dark'"
|
||||
block
|
||||
class="text-left"
|
||||
|
@ -132,11 +145,6 @@ export default {
|
|||
title: 'Boards',
|
||||
icon: 'fas fa-th-large',
|
||||
},
|
||||
{
|
||||
name: 'profiles',
|
||||
title: 'Profiles',
|
||||
icon: 'fas fa-th-large',
|
||||
},
|
||||
{
|
||||
name: 'tags',
|
||||
title: 'Tags',
|
||||
|
@ -164,6 +172,13 @@ export default {
|
|||
title: 'Releases',
|
||||
icon: 'fas fa-rocket',
|
||||
},
|
||||
],
|
||||
betaFeatures: [
|
||||
{
|
||||
name: 'profiles',
|
||||
title: 'Profiles',
|
||||
icon: 'fas fa-th-large',
|
||||
},
|
||||
{
|
||||
name: 'dev-tools',
|
||||
title: 'Dev tools',
|
||||
|
@ -176,7 +191,7 @@ export default {
|
|||
computed: {
|
||||
...mapState(['user', 'profile']),
|
||||
|
||||
showDevTools() {
|
||||
dev() {
|
||||
return process.env.NODE_ENV === 'development';
|
||||
},
|
||||
|
||||
|
|
Loading…
Reference in a new issue