limit visibility for wip features

This commit is contained in:
Gamebrary 2021-05-07 14:59:23 -07:00
parent 02782dc00e
commit 6df8da6f6e

View file

@ -71,6 +71,19 @@
</b-button> </b-button>
<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'" :variant="routeName === 'profile' ? 'primary' : 'dark'"
block block
class="text-left" class="text-left"
@ -132,11 +145,6 @@ export default {
title: 'Boards', title: 'Boards',
icon: 'fas fa-th-large', icon: 'fas fa-th-large',
}, },
{
name: 'profiles',
title: 'Profiles',
icon: 'fas fa-th-large',
},
{ {
name: 'tags', name: 'tags',
title: 'Tags', title: 'Tags',
@ -164,6 +172,13 @@ export default {
title: 'Releases', title: 'Releases',
icon: 'fas fa-rocket', icon: 'fas fa-rocket',
}, },
],
betaFeatures: [
{
name: 'profiles',
title: 'Profiles',
icon: 'fas fa-th-large',
},
{ {
name: 'dev-tools', name: 'dev-tools',
title: 'Dev tools', title: 'Dev tools',
@ -176,7 +191,7 @@ export default {
computed: { computed: {
...mapState(['user', 'profile']), ...mapState(['user', 'profile']),
showDevTools() { dev() {
return process.env.NODE_ENV === 'development'; return process.env.NODE_ENV === 'development';
}, },