updated watched cases with language and confirm

This commit is contained in:
2024-01-29 15:11:23 +00:00
parent 888ddf60bd
commit 3e83332d28
13 changed files with 216 additions and 167 deletions
+25 -22
View File
@@ -369,8 +369,8 @@ const DNSSearchResults = (props) => {
item.pinswg_appealcasetype,
"showMap": showMap,
});
}}>
}}
>
<span className="results-visually-hidden">
{t(
"search:searchresults-case-reference-label"
@@ -378,7 +378,6 @@ const DNSSearchResults = (props) => {
:
</span>
{item.title}
</Link>
</dd>
<dd className="govuk-summary-list__value govuk-!-font-size-16">
@@ -531,19 +530,21 @@ const DNSSearchResults = (props) => {
<span
className="govuk-summary-list__actionLink watched_link"
onClick={() => {
deleteItem(
isWatchedCase(
item.incidentid
)[0]
.pinswg_watchlistid,
"watchedCases"
);
alert(
confirm(
t(
"case:you-have-stopped-watching-label"
) + item.title
);
) +
item.title +
"?"
) &&
deleteItem(
isWatchedCase(
item.incidentid
)[0]
.pinswg_watchlistid,
"watchedCases"
);
}}
title={t(
"case:stop-watching-case-link"
@@ -555,16 +556,18 @@ const DNSSearchResults = (props) => {
<span
className="govuk-summary-list__actionLink watchLink"
onClick={() => {
selectWatchedCase(
cookies.pinsUser,
item.incidentid,
item.pinswg_appealcasetype
);
alert(
confirm(
t(
"case:you-are-watching-label"
) + item.title
);
) +
item.title +
"?"
) &&
selectWatchedCase(
cookies.pinsUser,
item.incidentid,
item.pinswg_appealcasetype
);
}}
title={t(
"case:watch-this-case-link"