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