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:
@@ -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={
|
||||
|
||||
Reference in New Issue
Block a user