- risolto Ordinamento Bestseller (a 6 mesi ora)
- EditOn anche per gli Editori
This commit is contained in:
@@ -191,6 +191,9 @@ export default defineComponent({
|
||||
function isManager() {
|
||||
return userStore.isManager
|
||||
}
|
||||
function isEditor() {
|
||||
return userStore.isEditor
|
||||
}
|
||||
|
||||
const isSocio = computed(() => userStore.my.profile.socio)
|
||||
|
||||
@@ -630,6 +633,7 @@ export default defineComponent({
|
||||
products,
|
||||
userStore,
|
||||
clickMenu3Orizz,
|
||||
isEditor,
|
||||
}
|
||||
},
|
||||
|
||||
|
||||
@@ -71,7 +71,7 @@
|
||||
<q-toggle :icon="'fas fa-moon'" v-model="dark"> </q-toggle>
|
||||
</div>
|
||||
<div
|
||||
v-if="tools.isLogged() && isAdmin()"
|
||||
v-if="tools.isLogged() && (isAdmin() || tools.isEditor())"
|
||||
class="text-h7"
|
||||
>
|
||||
<q-toggle :icon="'fas fa-pencil-alt'" v-model="globalStore.editOn"> </q-toggle>
|
||||
@@ -346,6 +346,12 @@
|
||||
>
|
||||
Segreteria
|
||||
</div>
|
||||
<div
|
||||
v-if="isEditor()"
|
||||
class="text-weight-bold text-user bg-indigo q-px-xs"
|
||||
>
|
||||
Editore
|
||||
</div>
|
||||
<div
|
||||
v-if="isFacilitatore()"
|
||||
class="text-weight-bold text-user q-px-xs"
|
||||
|
||||
Reference in New Issue
Block a user