watched cases and view all
This commit is contained in:
@@ -46,10 +46,13 @@ const MyRepresentations = (props) => {
|
||||
"viewName": "My Representations",
|
||||
"viewKey": "myRepresentations",
|
||||
});
|
||||
}}>
|
||||
|
||||
{t("myportal:viewall-link")}
|
||||
|
||||
}}
|
||||
>
|
||||
{t("myportal:viewall-link")}{" "}
|
||||
{props.isLPA &&
|
||||
props.myRepresentations.myRepresentations[
|
||||
"@odata.count"
|
||||
] + " representations"}
|
||||
</Link>
|
||||
</div>
|
||||
)}
|
||||
|
||||
@@ -46,10 +46,13 @@ const MyRepresentations = (props) => {
|
||||
"viewName": "My Representations",
|
||||
"viewKey": "myRepresentations",
|
||||
});
|
||||
}}>
|
||||
|
||||
{t("myportal:viewall-link")}
|
||||
|
||||
}}
|
||||
>
|
||||
{t("myportal:viewall-link")}{" "}
|
||||
{props.isLPA &&
|
||||
props.myRepresentations.myRepresentations[
|
||||
"@odata.count"
|
||||
] + " representations"}
|
||||
</Link>
|
||||
</div>
|
||||
)}
|
||||
|
||||
@@ -27,6 +27,7 @@ import { getFormCollectionByID } from "../../components/utils";
|
||||
const TopThree = (props) => {
|
||||
let { t } = useTranslation();
|
||||
const {
|
||||
currentView,
|
||||
showTopThree,
|
||||
showDetails,
|
||||
setCurrentReference,
|
||||
@@ -194,7 +195,7 @@ const TopThree = (props) => {
|
||||
"appealType":
|
||||
showTopThreeArr[key]
|
||||
.pinswg_appealcasetype,
|
||||
"showLoginCheck": props.showLoginCheck,
|
||||
"showLoginCheck": currentView.showLogin,
|
||||
});
|
||||
}}
|
||||
>
|
||||
|
||||
@@ -124,14 +124,12 @@ const ViewAllResults = (props) => {
|
||||
resultsArr[key].pinswg_appealcasetype,
|
||||
"repDetails":
|
||||
currentView.viewKey ==
|
||||
"myRepresentations" &&
|
||||
resultsArr[key],
|
||||
"myRepresentations" && resultsArr[key],
|
||||
});
|
||||
}}>
|
||||
|
||||
}}
|
||||
>
|
||||
<span className="results-visually-hidden">
|
||||
{t("search:searchresults-case-reference-label")}
|
||||
:
|
||||
{t("search:searchresults-case-reference-label")}:
|
||||
</span>
|
||||
{currentView.viewKey != "watchedCases"
|
||||
? currentView.viewKey == "myRepresentations"
|
||||
@@ -140,7 +138,6 @@ const ViewAllResults = (props) => {
|
||||
: resultsArr[key][
|
||||
"_pinswg_watchedcase_value@OData.Community.Display.V1.FormattedValue"
|
||||
]}
|
||||
|
||||
</Link>
|
||||
</dd>
|
||||
<dd className="govuk-summary-list__value govuk-!-font-size-16">
|
||||
@@ -528,7 +525,7 @@ const ViewAllResults = (props) => {
|
||||
<div className="govuk-grid-column-full">
|
||||
<div className="govuk-button-group">
|
||||
<a
|
||||
onClick={() => router.back()}
|
||||
onClick={() => router.replace("/myportal")}
|
||||
className="govuk-button"
|
||||
>
|
||||
Back
|
||||
|
||||
@@ -19,12 +19,12 @@ const WatchedCases = (props) => {
|
||||
{t("myportal:watchedcases-card-title")}
|
||||
</h3>
|
||||
<div className="cardModuleContainer">
|
||||
<div>werwrew {props.showLoginCheck}</div>
|
||||
<TopThree
|
||||
showTopThree={props.watchedCases.watchedCases}
|
||||
showDetails={props.watchedCases.watchedCasesDetails}
|
||||
topThreeType={"watchedCases"}
|
||||
showLoginCheck={props.showLoginCheck}
|
||||
currentView={props.currentView}
|
||||
/>
|
||||
</div>
|
||||
|
||||
@@ -47,7 +47,9 @@ const WatchedCases = (props) => {
|
||||
});
|
||||
}}
|
||||
>
|
||||
{t("myportal:viewall-link")}
|
||||
{t("myportal:viewall-link")}{" "}
|
||||
{props.watchedCases.watchedCases["@odata.count"] +
|
||||
" cases"}
|
||||
</Link>
|
||||
</div>
|
||||
)}
|
||||
|
||||
Reference in New Issue
Block a user