From fa486931a35ae13dac681830189e93c52aa806bf Mon Sep 17 00:00:00 2001 From: John Coburn Date: Thu, 5 Oct 2023 08:45:01 -0500 Subject: [PATCH] unify appearance of Job profile and download links --- src/routes/JobSummary/JobSummary.js | 25 ++++++++++++++++--------- 1 file changed, 16 insertions(+), 9 deletions(-) diff --git a/src/routes/JobSummary/JobSummary.js b/src/routes/JobSummary/JobSummary.js index 444d6f191..c0d1bc05d 100644 --- a/src/routes/JobSummary/JobSummary.js +++ b/src/routes/JobSummary/JobSummary.js @@ -27,6 +27,8 @@ import { Paneset, Row, Col, + Layout, + TextLink, } from '@folio/stripes/components'; import css from '@folio/stripes-data-transfer-components/lib/SearchAndSortPane/SearchAndSortPane.css'; import sharedCss from '../../shared.css'; @@ -42,6 +44,7 @@ import { storage, PREVIOUS_LOCATIONS_KEY, PER_REQUEST_LIMIT, + trimLeadNumbers, } from '../../utils'; import { UploadingJobsContext } from '../../components'; @@ -141,13 +144,12 @@ const JobSummaryComponent = props => { }; const jobProfileLink = ( - + }}> {jobProfileName} - + ); const renderHeader = renderProps => { @@ -157,7 +159,7 @@ const JobSummaryComponent = props => { iconKey={isEdifactType ? FOLIO_RECORD_TYPES.INVOICE.iconKey : 'app'} app="data-import" > - <>{jobExecutionsRecords[0]?.fileName} + <>{trimLeadNumbers(jobExecutionsRecords[0]?.fileName)} ); const firstMenu = ( @@ -200,10 +202,15 @@ const JobSummaryComponent = props => {
- + +
+ + + :  + + { jobProfileLink } +
+
{uploadConfiguration?.canUseObjectStorage && (