From 9a58417abd18b1243d49ce392c093ff9da435fd5 Mon Sep 17 00:00:00 2001 From: rdbsolutions Date: Thu, 19 Dec 2024 09:40:50 +0000 Subject: [PATCH 1/2] default icon from txt to blank generic icon --- .../case/representation/representationElements.js | 2 +- components/elements/index.js | 2 +- components/utils/index.js | 2 +- public/assets/images/documenttypes/default.png | Bin 0 -> 519 bytes 4 files changed, 3 insertions(+), 3 deletions(-) create mode 100644 public/assets/images/documenttypes/default.png diff --git a/components/case/representation/representationElements.js b/components/case/representation/representationElements.js index 767f7ab3..10e5e7bf 100644 --- a/components/case/representation/representationElements.js +++ b/components/case/representation/representationElements.js @@ -912,7 +912,7 @@ export const RenderFileUpload = (field) => { return URL.createObjectURL(fileObj); break; default: - return "/assets/images/documenttypes/txt.png"; + return "/assets/images/documenttypes/default.png"; break; } }; diff --git a/components/elements/index.js b/components/elements/index.js index c13f29cb..42284bde 100644 --- a/components/elements/index.js +++ b/components/elements/index.js @@ -1855,7 +1855,7 @@ const RenderFileUpload = (field) => { return URL.createObjectURL(fileObj); break; default: - return "/assets/images/documenttypes/txt.png"; + return "/assets/images/documenttypes/default.png"; break; } }; diff --git a/components/utils/index.js b/components/utils/index.js index 4b0276cb..14af3725 100644 --- a/components/utils/index.js +++ b/components/utils/index.js @@ -445,7 +445,7 @@ export const getThumbnailIconByExtension = (blobName) => { return "/assets/images/documenttypes/png.png"; break; default: - return "/assets/images/documenttypes/txt.png"; + return "/assets/images/documenttypes/default.png"; break; } }; diff --git a/public/assets/images/documenttypes/default.png b/public/assets/images/documenttypes/default.png new file mode 100644 index 0000000000000000000000000000000000000000..33f095f9d86e1316eb7cafa84ac223f592b0b9d1 GIT binary patch literal 519 zcmeAS@N?(olHy`uVBq!ia0vp^T0pGC!N$PA7&pCo0g%Iz?&#~tz_78O`%fY(kZ+M1 z;hE;^3s%U%z}TM2zycIy1Y#*5W?*1izyuf3TEGlvD}f}BFFNx9sJP10#W5s;^KID1 zJSIaP-+-g+AuEFYH{54&PT#lOK62lJl1AB!D_!57E1Ieu_vDF;&;da!P4&5NEYA1+ zo#TCO*5%D{`^ztQ_Wek>W};nnGA%yN-bSTi9(#|N6SqE>5=i>F!(DZLi=HV@aZHe~=ER&yJBq!|pEB8&oOE!r zxra_eihj_)f+n$>%Uw_T=dJu%lUUCe|EN@`Y+hel)w{`>YikZZix;wsv};Uq*FNic zzTnjQ`}?l!zn$Z{E57;OHIb9Q-ze%@9w>X;&-O=uYGiwe){BaqTO!Y9{d{~e=fUzx z8MpPe?G)z|^E-JterB`i&p9zAuCA?tr`ja~&a4*q(!D6O_W4b|WnW$2rJZY;W+&m6 vy(mi8ea Date: Thu, 19 Dec 2024 09:41:15 +0000 Subject: [PATCH 2/2] hide owner and tenants if empty on check and pdf --- components/newappeal/buildcheckrow.js | 10 +++++++++- components/pdftemplates/appealRow_pdf.js | 7 ++++++- 2 files changed, 15 insertions(+), 2 deletions(-) diff --git a/components/newappeal/buildcheckrow.js b/components/newappeal/buildcheckrow.js index 237fe47d..cae9eee4 100644 --- a/components/newappeal/buildcheckrow.js +++ b/components/newappeal/buildcheckrow.js @@ -303,7 +303,13 @@ let BuildCheckRow = (props) => { props.props.form["appealForm"].values[ datafieldname[0].value ].map((tenant, index) => { - return ( + console.log( + typeof tenant.pinswg_owners + ); + return typeof tenant.pinswg_owners != + "undefined" || + typeof tenant.pinswg_agriculturaltenantname != + "undefined" ? (
{ )}
+ ) : ( + "" ); }) ) : ( diff --git a/components/pdftemplates/appealRow_pdf.js b/components/pdftemplates/appealRow_pdf.js index c749036c..a0be99fd 100644 --- a/components/pdftemplates/appealRow_pdf.js +++ b/components/pdftemplates/appealRow_pdf.js @@ -473,7 +473,10 @@ export const AppealRow_pdf = (props) => { .value ].map( (tenant, index) => { - return ( + return typeof tenant.pinswg_owners != + "undefined" || + typeof tenant.pinswg_agriculturaltenantname != + "undefined" ? ( { )} + ) : ( + "" ); } )}