added rep type on view all for clarity
This commit is contained in:
@@ -148,14 +148,17 @@ const ViewAllResults = (props) => {
|
|||||||
<b> {t("myportal:appeal-pending-label")}</b>
|
<b> {t("myportal:appeal-pending-label")}</b>
|
||||||
</div>
|
</div>
|
||||||
) : (
|
) : (
|
||||||
|
<>
|
||||||
<Link
|
<Link
|
||||||
href={
|
href={
|
||||||
currentView.viewKey == "myRepresentations"
|
currentView.viewKey ==
|
||||||
|
"myRepresentations"
|
||||||
? {
|
? {
|
||||||
pathname:
|
pathname:
|
||||||
"/myportal/representation",
|
"/myportal/representation",
|
||||||
query: {
|
query: {
|
||||||
case: resultsArr[key].caseRef,
|
case: resultsArr[key]
|
||||||
|
.caseRef,
|
||||||
state: "edit",
|
state: "edit",
|
||||||
created:
|
created:
|
||||||
resultsArr[key]
|
resultsArr[key]
|
||||||
@@ -208,7 +211,8 @@ const ViewAllResults = (props) => {
|
|||||||
),
|
),
|
||||||
setCurrentReference({
|
setCurrentReference({
|
||||||
"ticketnumber":
|
"ticketnumber":
|
||||||
resultsArr[key].ticketnumber,
|
resultsArr[key]
|
||||||
|
.ticketnumber,
|
||||||
"currentReference":
|
"currentReference":
|
||||||
currentView.viewKey !=
|
currentView.viewKey !=
|
||||||
"watchedCases"
|
"watchedCases"
|
||||||
@@ -222,11 +226,13 @@ const ViewAllResults = (props) => {
|
|||||||
"_pinswg_watchedcase_value@OData.Community.Display.V1.FormattedValue"
|
"_pinswg_watchedcase_value@OData.Community.Display.V1.FormattedValue"
|
||||||
],
|
],
|
||||||
|
|
||||||
"currentType": currentView.viewKey,
|
"currentType":
|
||||||
|
currentView.viewKey,
|
||||||
"incidentid":
|
"incidentid":
|
||||||
currentView.viewKey !=
|
currentView.viewKey !=
|
||||||
"watchedCases"
|
"watchedCases"
|
||||||
? resultsArr[key].incidentid
|
? resultsArr[key]
|
||||||
|
.incidentid
|
||||||
: resultsArr[key][
|
: resultsArr[key][
|
||||||
"_pinswg_watchedcase_value"
|
"_pinswg_watchedcase_value"
|
||||||
],
|
],
|
||||||
@@ -240,7 +246,8 @@ const ViewAllResults = (props) => {
|
|||||||
resultsArr[key],
|
resultsArr[key],
|
||||||
}),
|
}),
|
||||||
setCurrentView({
|
setCurrentView({
|
||||||
"viewName": currentView.viewName,
|
"viewName":
|
||||||
|
currentView.viewName,
|
||||||
"viewKey": currentView.viewKey,
|
"viewKey": currentView.viewKey,
|
||||||
});
|
});
|
||||||
}}
|
}}
|
||||||
@@ -252,13 +259,23 @@ const ViewAllResults = (props) => {
|
|||||||
:
|
:
|
||||||
</span>
|
</span>
|
||||||
{currentView.viewKey != "watchedCases"
|
{currentView.viewKey != "watchedCases"
|
||||||
? currentView.viewKey == "myRepresentations"
|
? currentView.viewKey ==
|
||||||
|
"myRepresentations"
|
||||||
? resultsArr[key].caseRef
|
? resultsArr[key].caseRef
|
||||||
: resultsArr[key].ticketnumber
|
: resultsArr[key].ticketnumber
|
||||||
: resultsArr[key][
|
: resultsArr[key][
|
||||||
"_pinswg_watchedcase_value@OData.Community.Display.V1.FormattedValue"
|
"_pinswg_watchedcase_value@OData.Community.Display.V1.FormattedValue"
|
||||||
]}
|
]}
|
||||||
</Link>
|
</Link>
|
||||||
|
{currentView.viewKey == "myRepresentations" && (
|
||||||
|
<>
|
||||||
|
<br />
|
||||||
|
<span>
|
||||||
|
{resultsArr[key].representationType}
|
||||||
|
</span>
|
||||||
|
</>
|
||||||
|
)}
|
||||||
|
</>
|
||||||
)}
|
)}
|
||||||
</dd>
|
</dd>
|
||||||
{/* <dd className="govuk-summary-list__value govuk-!-font-size-16">
|
{/* <dd className="govuk-summary-list__value govuk-!-font-size-16">
|
||||||
|
|||||||
Reference in New Issue
Block a user