mirror of
https://github.com/romancm/gamebrary
synced 2024-11-23 19:53:14 +00:00
move isDev to getter
This commit is contained in:
parent
5843574afe
commit
624e61ec19
2 changed files with 4 additions and 7 deletions
|
@ -52,7 +52,7 @@
|
|||
</b-dropdown-item>
|
||||
|
||||
<b-dropdown-item
|
||||
v-if="dev"
|
||||
v-if="isDev"
|
||||
v-for="{ name, title, icon } in betaFeatures"
|
||||
:key="name"
|
||||
:variant="name === routeName ? 'primary' : ''"
|
||||
|
@ -159,12 +159,7 @@ export default {
|
|||
|
||||
computed: {
|
||||
...mapState(['user', 'profile']),
|
||||
...mapGetters(['isRTL']),
|
||||
|
||||
dev() {
|
||||
// TODO: put in getter or util
|
||||
return process.env.NODE_ENV === 'development';
|
||||
},
|
||||
...mapGetters(['isRTL', 'isDev']),
|
||||
|
||||
routeName() {
|
||||
return this.$route.name;
|
||||
|
|
|
@ -23,6 +23,8 @@ export default {
|
|||
// Arabic is the only ltr language supported at the moment
|
||||
isRTL: ({ settings }) => settings && settings.language !== 'ar',
|
||||
|
||||
isDev: () => process.env.NODE_ENV === 'development',
|
||||
|
||||
platformNames: (state) => {
|
||||
const formattedPlatforms = {};
|
||||
|
||||
|
|
Loading…
Reference in a new issue