From c4eaa72aec0f15b88ea50b6477bb99cda75d6ec9 Mon Sep 17 00:00:00 2001 From: hasyim_kai Date: Fri, 21 Nov 2025 10:20:23 +0700 Subject: [PATCH] Fix: debug Uplaod Doc List table --- app/components/content/document-upload/list.vue | 16 ++++------------ 1 file changed, 4 insertions(+), 12 deletions(-) diff --git a/app/components/content/document-upload/list.vue b/app/components/content/document-upload/list.vue index d1f6fbad..7f7631d9 100644 --- a/app/components/content/document-upload/list.vue +++ b/app/components/content/document-upload/list.vue @@ -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 } })