Skip to content

Commit 92e3d03

Browse files
committed
Added premium restriction to snippet's list
1 parent 270cd01 commit 92e3d03

File tree

5 files changed

+8
-13
lines changed

5 files changed

+8
-13
lines changed

.env

-10
This file was deleted.

.env.prod .env.exemple

File renamed without changes.

.gitignore

+3
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,9 @@ node_modules
33
/dist
44

55
# local env files
6+
.env
7+
.env.dev
8+
.env.production
69
.env.local
710
.env.*.local
811

src/components/snippet/ListItem.vue

+4-2
Original file line numberDiff line numberDiff line change
@@ -104,7 +104,7 @@
104104
</template>
105105
<span>{{ $t('use_now') }}</span>
106106
</v-tooltip>
107-
<v-tooltip bottom>
107+
<v-tooltip bottom v-if="authenticated && authUser.is_premium">
108108
<template v-slot:activator="{ on }">
109109
<v-btn v-on="on" fab small class="deep-orange deep-orange--text lighten-5 ml-4" @click="save">
110110
<v-icon small>mdi-checkbox-marked-circle-outline</v-icon>
@@ -211,7 +211,9 @@ export default {
211211
}
212212
},
213213
computed: {
214-
...mapGetters(['vscode'])
214+
...mapGetters(['vscode']),
215+
...mapGetters('user', ['authUser']),
216+
...mapGetters('auth', ['authenticated']),
215217
},
216218
methods: {
217219
parseLang (v) {

src/pages/Index.vue

+1-1
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@
1616
full-width
1717
large
1818
outlined
19-
autofocus="on"
19+
:autofocus="true"
2020
autocomplete="off"
2121
flat
2222
rounded

0 commit comments

Comments
 (0)