diff --git a/frontend/hospital-portal/src/sections/dashboard/TableList.tsx b/frontend/hospital-portal/src/sections/dashboard/TableList.tsx index b3f95ca0..c484f4ed 100644 --- a/frontend/hospital-portal/src/sections/dashboard/TableList.tsx +++ b/frontend/hospital-portal/src/sections/dashboard/TableList.tsx @@ -350,12 +350,12 @@ function handleChangeTab(event: React.SyntheticEvent, newValue: string) { View - {/* {obj.status === 'approved' ? ( */} + {obj.status === 'approved' ? ( handleDownloadLog(obj.id)}> Download LOG - {/* ):''} */} + ):''} {obj.final_log === 0 && obj.status === 'approved' ? ( handleRequestFinalLog(obj.id, obj.full_name, obj.no_polis, obj.submission_date) }> diff --git a/frontend/hospital-portal/src/sections/dashboard/TableListFinalLog.tsx b/frontend/hospital-portal/src/sections/dashboard/TableListFinalLog.tsx index 4a71e61d..5645e329 100644 --- a/frontend/hospital-portal/src/sections/dashboard/TableListFinalLog.tsx +++ b/frontend/hospital-portal/src/sections/dashboard/TableListFinalLog.tsx @@ -39,23 +39,7 @@ export default function TableListFinalLog() { // Download LOG async function handleDownloadLog(claimRequest:any) { - return axios - .get(`claim-requests/${claimRequest}/log`, { - responseType: 'blob', - }) - .then((response) => { - window.open(URL.createObjectURL(response.data)); - // setLoadingLog(false); - }) - // .then((blobFile) => { - // new File([blobFile], 'asdads.pdf', { type: blobFile.type }) - // setLoadingLog(false); - // }) - .catch((response) => { - console.log(response); - enqueueSnackbar(response.message, { variant: 'error' }); - // setLoadingLog(false); - }); + enqueueSnackbar('Sorry, this feature is currently being processed', { variant: 'error' }); } /* -------------------------------------------------------------------------- */