Correcao Sidebar Classico e Rail, Correcao Layout, Ajuste de Breakpoint para Tailwind, Ajuste AppTopbar, Ajuste Menu PopOver, Recriado Paleta de Cores, Inserido algumas animações leves, Reajuste Cor items NOVOS da tabela, Drawer Ajuda Corrigido no Logout, Whatsapp, sms, email, recursos extras
This commit is contained in:
@@ -15,33 +15,33 @@
|
||||
|--------------------------------------------------------------------------
|
||||
-->
|
||||
<script setup>
|
||||
import { computed } from 'vue'
|
||||
import { useEntitlementsStore } from '@/stores/entitlementsStore'
|
||||
import { computed } from 'vue';
|
||||
import { useEntitlementsStore } from '@/stores/entitlementsStore';
|
||||
|
||||
const props = defineProps({
|
||||
feature: {
|
||||
type: String,
|
||||
required: true
|
||||
},
|
||||
fallback: {
|
||||
type: Boolean,
|
||||
default: false
|
||||
}
|
||||
})
|
||||
feature: {
|
||||
type: String,
|
||||
required: true
|
||||
},
|
||||
fallback: {
|
||||
type: Boolean,
|
||||
default: false
|
||||
}
|
||||
});
|
||||
|
||||
const ent = useEntitlementsStore()
|
||||
const ent = useEntitlementsStore();
|
||||
|
||||
const allowed = computed(() => {
|
||||
return ent.can(props.feature)
|
||||
})
|
||||
return ent.can(props.feature);
|
||||
});
|
||||
</script>
|
||||
|
||||
<template>
|
||||
<template v-if="allowed">
|
||||
<slot />
|
||||
</template>
|
||||
<template v-if="allowed">
|
||||
<slot />
|
||||
</template>
|
||||
|
||||
<template v-else-if="fallback">
|
||||
<slot name="fallback" />
|
||||
</template>
|
||||
<template v-else-if="fallback">
|
||||
<slot name="fallback" />
|
||||
</template>
|
||||
</template>
|
||||
|
||||
Reference in New Issue
Block a user