IO-3092 resolve thumbnail fetching

This commit is contained in:
Patrick Fic
2025-02-25 11:15:29 -08:00
parent 5adb54f5cb
commit 66671385d0

View File

@@ -108,7 +108,6 @@ function JobsDocumentsImgproxyComponent({
const hasMobileAccess = HasFeatureAccess({ bodyshop, featureName: "mobile" }); const hasMobileAccess = HasFeatureAccess({ bodyshop, featureName: "mobile" });
return ( return (
<div> <div>
<Typography.Title level={3}>IMG PROXY COMPONENTS (DELETE ME)</Typography.Title>
<Row gutter={[16, 16]}> <Row gutter={[16, 16]}>
<Col span={24}> <Col span={24}>
<Space wrap> <Space wrap>
@@ -126,8 +125,13 @@ function JobsDocumentsImgproxyComponent({
</Button> </Button>
<JobsDocumentsGallerySelectAllComponent galleryImages={galleryImages} setGalleryImages={setgalleryImages} /> <JobsDocumentsGallerySelectAllComponent galleryImages={galleryImages} setGalleryImages={setgalleryImages} />
<JobsDocumentsDownloadButton galleryImages={galleryImages} identifier={downloadIdentifier} /> <JobsDocumentsDownloadButton galleryImages={galleryImages} identifier={downloadIdentifier} />
<JobsDocumentsDeleteButton galleryImages={galleryImages} deletionCallback={billsCallback || refetch} /> <JobsDocumentsDeleteButton
{!billId && <JobsDocumentsGalleryReassign galleryImages={galleryImages} callback={refetch} />} galleryImages={galleryImages}
deletionCallback={billsCallback || fetchThumbnails || refetch}
/>
{!billId && (
<JobsDocumentsGalleryReassign galleryImages={galleryImages} callback={fetchThumbnails || refetch} />
)}
</Space> </Space>
</Col> </Col>
{!hasMediaAccess && ( {!hasMediaAccess && (
@@ -143,7 +147,7 @@ function JobsDocumentsImgproxyComponent({
jobId={jobId} jobId={jobId}
totalSize={totalSize} totalSize={totalSize}
billId={billId} billId={billId}
callbackAfterUpload={billsCallback || refetch} callbackAfterUpload={billsCallback || fetchThumbnails || refetch}
ignoreSizeLimit={ignoreSizeLimit} ignoreSizeLimit={ignoreSizeLimit}
/> />
</Card> </Card>