Merged PR 2392: updated project types for new sub grid

updated project types for new sub grid

Related work items: #23752
This commit is contained in:
Robert Bond
2026-06-16 17:44:04 +00:00
parent 3efaafdb72
commit ca244e5de1
4 changed files with 86 additions and 38 deletions
+37 -20
View File
@@ -38,6 +38,12 @@ const Pinswg_sipscase = (props) => {
new Date(a.pinswg_newcasedeadline)
)[0];
const projectTypes = Array.isArray(
detailsObj.pinswg_sips_pinswg_sipsprojecttype
)
? detailsObj.pinswg_sips_pinswg_sipsprojecttype
: [];
return (
<>
{detailsObj.pinswg_projectdescription != null ? (
@@ -118,28 +124,40 @@ const Pinswg_sipscase = (props) => {
}
/>
{hasValidKey(
detailsObj,
"_pinswg_projecttype_value"
) && (
{projectTypes.length > 0 && (
<SummaryRow
label={"Project Type"}
value={
router.locale == "cy"
? jsonpath(
'$..[?(@.value=="' +
detailsObj[
"_pinswg_projecttype_value@OData.Community.Display.V1.FormattedValue"
] +
'")].value_cy',
transLookup
)
: detailsObj[
"_pinswg_projecttype_value@OData.Community.Display.V1.FormattedValue"
] ||
t(
"case:summary-no-date-entered-label"
)
<>
{projectTypes.map(
(projectType) => {
const projectTypeName =
projectType.pinswg_name;
const translatedProjectTypeName =
router.locale ==
"cy"
? jsonpath(
'$..[?(@.value=="' +
projectTypeName +
'")].value_cy',
transLookup
)
: projectTypeName;
return (
<div
key={
projectType.pinswg_sipsprojecttypeid
}
>
{translatedProjectTypeName ||
projectTypeName}
</div>
);
}
)}
</>
}
/>
)}
@@ -266,7 +284,6 @@ const Pinswg_sipscase = (props) => {
)
}
/>
{/* <SummaryRow
label={t("case:summary-status-label")}
value={