added rep type on view all for clarity

This commit is contained in:
2025-01-30 14:08:48 +00:00
parent 933e30f626
commit f91cc1b953
+24 -7
View File
@@ -148,14 +148,17 @@ const ViewAllResults = (props) => {
<b> {t("myportal:appeal-pending-label")}</b>
</div>
) : (
<>
<Link
href={
currentView.viewKey == "myRepresentations"
currentView.viewKey ==
"myRepresentations"
? {
pathname:
"/myportal/representation",
query: {
case: resultsArr[key].caseRef,
case: resultsArr[key]
.caseRef,
state: "edit",
created:
resultsArr[key]
@@ -208,7 +211,8 @@ const ViewAllResults = (props) => {
),
setCurrentReference({
"ticketnumber":
resultsArr[key].ticketnumber,
resultsArr[key]
.ticketnumber,
"currentReference":
currentView.viewKey !=
"watchedCases"
@@ -222,11 +226,13 @@ const ViewAllResults = (props) => {
"_pinswg_watchedcase_value@OData.Community.Display.V1.FormattedValue"
],
"currentType": currentView.viewKey,
"currentType":
currentView.viewKey,
"incidentid":
currentView.viewKey !=
"watchedCases"
? resultsArr[key].incidentid
? resultsArr[key]
.incidentid
: resultsArr[key][
"_pinswg_watchedcase_value"
],
@@ -240,7 +246,8 @@ const ViewAllResults = (props) => {
resultsArr[key],
}),
setCurrentView({
"viewName": currentView.viewName,
"viewName":
currentView.viewName,
"viewKey": currentView.viewKey,
});
}}
@@ -252,13 +259,23 @@ const ViewAllResults = (props) => {
:
</span>
{currentView.viewKey != "watchedCases"
? currentView.viewKey == "myRepresentations"
? currentView.viewKey ==
"myRepresentations"
? resultsArr[key].caseRef
: resultsArr[key].ticketnumber
: resultsArr[key][
"_pinswg_watchedcase_value@OData.Community.Display.V1.FormattedValue"
]}
</Link>
{currentView.viewKey == "myRepresentations" && (
<>
<br />
<span>
{resultsArr[key].representationType}
</span>
</>
)}
</>
)}
</dd>
{/* <dd className="govuk-summary-list__value govuk-!-font-size-16">