diff --git a/components/case/representation/representationElements.js b/components/case/representation/representationElements.js index 737506f7..65c38700 100644 --- a/components/case/representation/representationElements.js +++ b/components/case/representation/representationElements.js @@ -939,10 +939,6 @@ export const RenderFileUpload = (field) => { case "application/vnd.openxmlformats-officedocument.spreadsheetml.sheet": return "/assets/images/documenttypes/xlsx.png"; break; - - case "application/zip": - return "/assets/images/documenttypes/zip.png"; - break; case "image/jpeg": return "/assets/images/documenttypes/jpg.png"; case "image/png": @@ -1091,7 +1087,6 @@ export const RenderFileUpload = (field) => { [".docx"], "image/tiff": [".tif", ".tiff"], "image/jpeg": [".jpg", ".jpeg"], - "application/zip": [".zip"], "image/png": [".png"], "application/vnd.openxmlformats-officedocument.spreadsheetml.sheet": [".xlsx"], @@ -1338,7 +1333,7 @@ export const RenderFileUpload = (field) => { ?.values?.repfile_name ) + "&blobname=" + - blob.name + + encodeURIComponent(blob.name) + blob.hashedfilepath } className="govuk-body govuk-!-font-size-14 govuk-!-padding-left-5 govuk-link" diff --git a/components/case/summary.js b/components/case/summary.js index c82cf6c5..ed5aa7ff 100644 --- a/components/case/summary.js +++ b/components/case/summary.js @@ -104,6 +104,38 @@ const CaseSummary = (props) => { ? true : false; + let ShowDocLinks = false; + let checkShowDocLinks = docsOffline != false ? true : false; + + const getDocLink = (docsOffline) => { + var startTime = docsOffline.split(",")[0]; + var endTime = docsOffline.split(",")[1]; + + // console.log(startTime); + // console.log(endTime); + + var currentDate = new Date(); + + var startDate = new Date(currentDate.getTime()); + startDate.setHours(startTime.split(":")[0]); + startDate.setMinutes(startTime.split(":")[1]); + startDate.setSeconds(startTime.split(":")[2]); + + var endDate = new Date(currentDate.getTime()); + endDate.setHours(endTime.split(":")[0]); + endDate.setMinutes(endTime.split(":")[1]); + endDate.setSeconds(endTime.split(":")[2]); + + // console.log(startDate); + // console.log(endDate); + // console.log(currentDate); + + var valid = startDate < currentDate && endDate > currentDate; + ShowDocLinks = valid; + }; + + checkShowDocLinks && getDocLink(docsOffline); + const selectWatchedCase = (loggedInUser, incidentID, appealType) => { let updateBody = { "pinswg_WatchedCase@odata.bind": "/incidents(" + incidentID + ")", @@ -122,7 +154,7 @@ const CaseSummary = (props) => { }); }); - setCaseInvolvment(incidentid, loggedInUser); + //setCaseInvolvment(incidentid, loggedInUser); }; const selectEmailNotifications = ( @@ -770,115 +802,6 @@ const CaseSummary = (props) => {
- {t(
- "case:representation-date-passed-label",
- {
- startDate:
- formatDates(
- detailsObj.pinswg_consultationopen
- ),
- endDate:
- formatDates(
- detailsObj.pinswg_consultationclose
- ),
- }
- )}
-
{" "}
- {t(
- "case:representation-date-passed-additional-label"
- )}{" "}
-
- {t(
- "home:login-contact-email"
- )}
-
-