diff --git a/app/components/app/doctor/entry-form.vue b/app/components/app/doctor/entry-form.vue
index 3fe1efc6..52f079ac 100644
--- a/app/components/app/doctor/entry-form.vue
+++ b/app/components/app/doctor/entry-form.vue
@@ -13,20 +13,89 @@ import Label from '~/components/pub/form/label.vue'
-
diff --git a/app/components/flow/doctor/list.vue b/app/components/flow/doctor/list.vue
index c169e59d..ed4aff6f 100644
--- a/app/components/flow/doctor/list.vue
+++ b/app/components/flow/doctor/list.vue
@@ -21,7 +21,7 @@ const recAction = ref
('')
const recItem = ref(null)
const hreaderPrep: HeaderPrep = {
- title: 'Doctor',
+ title: 'Dokter',
icon: 'i-lucide-add',
addNav: {
label: 'Tambah',
diff --git a/app/pages/(features)/doctor/add.vue b/app/pages/(features)/doctor/add.vue
index 713f3a6b..c869c0be 100644
--- a/app/pages/(features)/doctor/add.vue
+++ b/app/pages/(features)/doctor/add.vue
@@ -5,10 +5,14 @@ import { PAGE_PERMISSIONS } from '~/lib/page-permission'
definePageMeta({
middleware: ['rbac'],
roles: ['doctor', 'nurse', 'admisi', 'pharmacy', 'billing', 'management'],
- pageTitle: 'Doctor',
+ title: 'Tambah Dokter',
contentFrame: 'cf-full-width',
})
+useHead({
+ title: () => useRoute().meta.title as string,
+})
+
const roleAccess: PagePermission = PAGE_PERMISSIONS['/doctor']
const { checkRole, hasCreateAccess } = useRBAC()
diff --git a/app/pages/(features)/doctor/index.vue b/app/pages/(features)/doctor/index.vue
index 6b45fb92..f947e500 100644
--- a/app/pages/(features)/doctor/index.vue
+++ b/app/pages/(features)/doctor/index.vue
@@ -5,10 +5,13 @@ import { PAGE_PERMISSIONS } from '~/lib/page-permission'
definePageMeta({
middleware: ['rbac'],
roles: ['doctor', 'nurse', 'admisi', 'pharmacy', 'billing', 'management'],
- pageTitle: 'Doctor',
+ title: 'Daftar Dokter',
contentFrame: 'cf-full-width',
})
+useHead({
+ title: () => useRoute().meta.title as string,
+})
const roleAccess: PagePermission = PAGE_PERMISSIONS['/doctor']
const { checkRole, hasReadAccess } = useRBAC()
diff --git a/app/pages/(features)/patient/index.vue b/app/pages/(features)/patient/index.vue
index d4bf0313..ec16d7ec 100644
--- a/app/pages/(features)/patient/index.vue
+++ b/app/pages/(features)/patient/index.vue
@@ -10,7 +10,7 @@ definePageMeta({
})
useHead({
- title: () => useRoute().meta.title,
+ title: () => useRoute().meta.title as string,
})
const roleAccess: PagePermission = PAGE_PERMISSIONS['/patient']
diff --git a/app/stores/user.ts b/app/stores/user.ts
index 8c4a618f..a9ed35c1 100644
--- a/app/stores/user.ts
+++ b/app/stores/user.ts
@@ -18,7 +18,7 @@ export const useUserStore = defineStore(
return {
user,
isAuthenticated,
- userRole: ['admisi'],
+ userRole: ['doctor'],
login,
logout,
}
diff --git a/public/side-menu-items/sys.json b/public/side-menu-items/sys.json
index 06768476..5e81d044 100644
--- a/public/side-menu-items/sys.json
+++ b/public/side-menu-items/sys.json
@@ -31,7 +31,7 @@
]
},
{
- "title": "Doctor",
+ "title": "Dokter",
"icon": "i-lucide-cross",
"link": "/doctor"
},