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 } })