Merge pull request #179 from dikstub-rssa/feat/uploads-85-after-reset

Fix: debug Uplaod Doc List table
This commit is contained in:
Munawwirul Jamal
2025-11-24 11:57:20 +07:00
committed by GitHub
@@ -20,8 +20,8 @@ const roleAccess: PagePermission = PAGE_PERMISSIONS['/rehab/encounter']
const { getPagePermissions } = useRBAC()
const pagePermission = getPagePermissions(roleAccess)
const {user,userRole} = useUserStore()
const {getUserPermissions} = useRBAC()
// const {user,userRole} = useUserStore()
// const {getUserPermissions} = useRBAC()
// #endregion
// #region State
@@ -121,6 +121,7 @@ watch([recId, recAction, timestamp], () => {
case ActionEvents.showDetail:
isDocPreviewDialogOpen.value = true
break
case ActionEvents.showEdit:
if(pagePermission.canUpdate){
navigateTo({
@@ -131,22 +132,13 @@ watch([recId, recAction, timestamp], () => {
unauthorizedToast()
}
break
case ActionEvents.showConfirmDelete:
if(pagePermission.canDelete){
isRecordConfirmationOpen.value = true
} else {
unauthorizedToast()
}
navigateTo(recItem.value.filePath, { external: true, open: { target: '_blank' } })
break
case ActionEvents.showEdit:
navigateTo({
name: 'rehab-encounter-id-document-upload-document_id-edit',
params: { id: encounterId, "document_id": recId.value },
})
break
case ActionEvents.showConfirmDelete:
isRecordConfirmationOpen.value = true
break
}
})