add permission role

This commit is contained in:
Yusron alamsyah
2026-04-10 14:40:11 +07:00
parent 4325bae76f
commit 734a78bd37
19 changed files with 1067 additions and 17 deletions
+12 -4
View File
@@ -24,12 +24,20 @@ const handleDelete = (page: RolePage) => emit('delete', page);
<v-card class="mb-3 page-card" elevation="2" @click="handleDetail(page)">
<v-card-text class="pa-5">
<div class="d-flex align-center">
<v-avatar color="primary" size="40" class="me-3">
<Icon :icon="'solar:' + page.icon" width="24" />
</v-avatar>
<v-tooltip location="bottom" :text="page.active ? 'Aktif' : 'Tidak Aktif'">
<template #activator="{ props: activatorProps }">
<v-avatar v-bind="activatorProps" :color="page.active ? 'primary' : 'muted'" size="40" class="me-3">
<Icon :icon="'solar:' + page.icon" width="24" />
</v-avatar>
</template>
</v-tooltip>
<div class="flex-grow-1">
<div class="d-flex align-center">
<h6 class="text-subtitle-1 font-weight-semibold">{{ page.name }}</h6>
<h6 class="text-subtitle-1 font-weight-semibold">{{ page.name }}
<!-- <v-chip size="small" :color="page.active ? 'success' : 'default'" class="ml-2">
{{ page.active ? 'Aktif' : 'Tidak Aktif' }}
</v-chip> -->
</h6>
</div>
<p class="text-muted mb-0">{{ page.url }}</p>
</div>