Merged PR 1346: icon and hide owner and tenants

Related work items: #12956
This commit is contained in:
Robert Bond
2024-12-19 13:37:20 +00:00
6 changed files with 18 additions and 5 deletions
@@ -912,7 +912,7 @@ export const RenderFileUpload = (field) => {
return URL.createObjectURL(fileObj); return URL.createObjectURL(fileObj);
break; break;
default: default:
return "/assets/images/documenttypes/txt.png"; return "/assets/images/documenttypes/default.png";
break; break;
} }
}; };
+1 -1
View File
@@ -1855,7 +1855,7 @@ const RenderFileUpload = (field) => {
return URL.createObjectURL(fileObj); return URL.createObjectURL(fileObj);
break; break;
default: default:
return "/assets/images/documenttypes/txt.png"; return "/assets/images/documenttypes/default.png";
break; break;
} }
}; };
+9 -1
View File
@@ -303,7 +303,13 @@ let BuildCheckRow = (props) => {
props.props.form["appealForm"].values[ props.props.form["appealForm"].values[
datafieldname[0].value datafieldname[0].value
].map((tenant, index) => { ].map((tenant, index) => {
return ( console.log(
typeof tenant.pinswg_owners
);
return typeof tenant.pinswg_owners !=
"undefined" ||
typeof tenant.pinswg_agriculturaltenantname !=
"undefined" ? (
<div <div
key={index} key={index}
style={{ style={{
@@ -321,6 +327,8 @@ let BuildCheckRow = (props) => {
)} )}
</div> </div>
</div> </div>
) : (
""
); );
}) })
) : ( ) : (
+6 -1
View File
@@ -473,7 +473,10 @@ export const AppealRow_pdf = (props) => {
.value .value
].map( ].map(
(tenant, index) => { (tenant, index) => {
return ( return typeof tenant.pinswg_owners !=
"undefined" ||
typeof tenant.pinswg_agriculturaltenantname !=
"undefined" ? (
<View <View
key={ key={
index index
@@ -507,6 +510,8 @@ export const AppealRow_pdf = (props) => {
)} )}
</Text> </Text>
</View> </View>
) : (
""
); );
} }
)} )}
+1 -1
View File
@@ -445,7 +445,7 @@ export const getThumbnailIconByExtension = (blobName) => {
return "/assets/images/documenttypes/png.png"; return "/assets/images/documenttypes/png.png";
break; break;
default: default:
return "/assets/images/documenttypes/txt.png"; return "/assets/images/documenttypes/default.png";
break; break;
} }
}; };
Binary file not shown.

After

Width:  |  Height:  |  Size: 519 B