We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 1dd3cfb commit 4d3b35eCopy full SHA for 4d3b35e
web/src/App.vue
@@ -398,7 +398,7 @@
398
399
<v-list-item
400
key="premium"
401
- v-if="user.admin && !user.has_active_subscription"
+ v-if="isPro && user.admin && !user.has_active_subscription"
402
@click="subscriptionDialog = true"
403
class="ActivatePremiumSubscriptionButton"
404
>
@@ -539,7 +539,7 @@
539
540
541
key="subscription"
542
- v-if="user.admin"
+ v-if="isPro && user.admin"
543
544
545
<v-list-item-icon>
@@ -1096,6 +1096,10 @@ export default {
1096
1097
computed: {
1098
1099
+ isPro() {
1100
+ return (process.env.VUE_APP_BUILD_TYPE || '').startsWith('pro_');
1101
+ },
1102
+
1103
lang() {
1104
const locale = localStorage.getItem('lang');
1105
0 commit comments