✨ feat (patient): set dynamic title for patient pages
This commit is contained in:
@@ -5,10 +5,14 @@ import { PAGE_PERMISSIONS } from '~/lib/page-permission'
|
||||
definePageMeta({
|
||||
middleware: ['rbac'],
|
||||
roles: ['doctor', 'nurse', 'admisi', 'pharmacy', 'billing', 'management'],
|
||||
pageTitle: 'Patient',
|
||||
title: 'Tambah Pasien',
|
||||
contentFrame: 'cf-full-width',
|
||||
})
|
||||
|
||||
useHead({
|
||||
title: () => useRoute().meta.title,
|
||||
})
|
||||
|
||||
const roleAccess: PagePermission = PAGE_PERMISSIONS['/patient']
|
||||
|
||||
const { checkRole, hasCreateAccess } = useRBAC()
|
||||
|
||||
@@ -5,10 +5,14 @@ import { PAGE_PERMISSIONS } from '~/lib/page-permission'
|
||||
definePageMeta({
|
||||
middleware: ['rbac'],
|
||||
roles: ['doctor', 'nurse', 'admisi', 'pharmacy', 'billing', 'management'],
|
||||
pageTitle: 'Patient',
|
||||
title: 'Daftar Pasien',
|
||||
contentFrame: 'cf-full-width',
|
||||
})
|
||||
|
||||
useHead({
|
||||
title: () => useRoute().meta.title,
|
||||
})
|
||||
|
||||
const roleAccess: PagePermission = PAGE_PERMISSIONS['/patient']
|
||||
|
||||
const { checkRole, hasReadAccess } = useRBAC()
|
||||
|
||||
Reference in New Issue
Block a user