TASK22028: fix myportal deleteRepItem caseRef and i18n namespace
This commit is contained in:
@@ -273,8 +273,7 @@ const TopThree = (props) => {
|
|||||||
deleteRepItem(
|
deleteRepItem(
|
||||||
props.accountDetails
|
props.accountDetails
|
||||||
.containerID,
|
.containerID,
|
||||||
showTopThreeArr[key]
|
showTopThreeArr[key].caseRef,
|
||||||
.ticketnumber,
|
|
||||||
showTopThreeArr[key]
|
showTopThreeArr[key]
|
||||||
.repfile_name
|
.repfile_name
|
||||||
);
|
);
|
||||||
|
|||||||
@@ -686,7 +686,7 @@ const ViewAllResults = (props) => {
|
|||||||
] || "N/A"}
|
] || "N/A"}
|
||||||
</dd>
|
</dd>
|
||||||
{isAwaitingSubmissionDetails && (
|
{isAwaitingSubmissionDetails && (
|
||||||
<dd className="govuk-summary-list__value govuk-!-font-size-16 cardModuleItem ">
|
<dd className="govuk-summary-list__value govuk-!-font-size-16 ">
|
||||||
<button
|
<button
|
||||||
title={t(
|
title={t(
|
||||||
"case:do-you-want-to-delete-case-label"
|
"case:do-you-want-to-delete-case-label"
|
||||||
@@ -714,7 +714,7 @@ const ViewAllResults = (props) => {
|
|||||||
</dd>
|
</dd>
|
||||||
)}
|
)}
|
||||||
{isMyRepresentations && (
|
{isMyRepresentations && (
|
||||||
<dd className="govuk-summary-list__value govuk-!-font-size-16 cardModuleItem ">
|
<dd className="govuk-summary-list__value govuk-!-font-size-16 ">
|
||||||
<button
|
<button
|
||||||
title={t(
|
title={t(
|
||||||
"case:do-you-want-to-delete-rep-label"
|
"case:do-you-want-to-delete-rep-label"
|
||||||
@@ -733,7 +733,7 @@ const ViewAllResults = (props) => {
|
|||||||
) &&
|
) &&
|
||||||
deleteRepItem(
|
deleteRepItem(
|
||||||
props.accountDetails.containerID,
|
props.accountDetails.containerID,
|
||||||
item.pinswg_name,
|
item.caseRef,
|
||||||
item.repfile_name
|
item.repfile_name
|
||||||
);
|
);
|
||||||
}}
|
}}
|
||||||
@@ -744,12 +744,12 @@ const ViewAllResults = (props) => {
|
|||||||
)}
|
)}
|
||||||
|
|
||||||
{isWatchedCases && (
|
{isWatchedCases && (
|
||||||
<dd className="govuk-summary-list__value govuk-!-font-size-16 cardModuleItem ">
|
<dd className="govuk-summary-list__value govuk-!-font-size-14 govuk-summary-list__action">
|
||||||
<button
|
<button
|
||||||
title={t(
|
title={t(
|
||||||
"case:do-you-want-to-delete-case-label"
|
"case:do-you-want-to-delete-case-label"
|
||||||
)}
|
)}
|
||||||
className=" cardModuleRemoveCase govuk-link govuk-link--no-underline govuk-link--inverse "
|
className=" cardModuleRemoveCase govuk-summary-list__actionLink watched_link"
|
||||||
onClick={() => {
|
onClick={() => {
|
||||||
confirm(
|
confirm(
|
||||||
t(
|
t(
|
||||||
@@ -769,7 +769,7 @@ const ViewAllResults = (props) => {
|
|||||||
</button>
|
</button>
|
||||||
{item.pinswg_emailnotifications === true ? (
|
{item.pinswg_emailnotifications === true ? (
|
||||||
<button
|
<button
|
||||||
className="govuk-summary-list__actionLink mailLink watched_link"
|
className="govuk-summary-list__actionLink mailLink"
|
||||||
title={t("common:unsubscribe-title-label")}
|
title={t("common:unsubscribe-title-label")}
|
||||||
onClick={() => {
|
onClick={() => {
|
||||||
confirm(
|
confirm(
|
||||||
@@ -928,8 +928,26 @@ const ViewAllResults = (props) => {
|
|||||||
.then((data) => data)
|
.then((data) => data)
|
||||||
.then(() => {
|
.then(() => {
|
||||||
getWatchedCasesProxy(cookies.pinsUser).then((data) => {
|
getWatchedCasesProxy(cookies.pinsUser).then((data) => {
|
||||||
(setWatchedCases(data),
|
let showWatchedCases = (submittedArr) => {
|
||||||
getDetailsProxy(data, "myWatchedCases")
|
const required = submittedArr.value.filter((el) => {
|
||||||
|
return (
|
||||||
|
el.pinswg_representationsubmitted == null
|
||||||
|
);
|
||||||
|
});
|
||||||
|
|
||||||
|
let newObj = {};
|
||||||
|
return Object.assign(newObj, {
|
||||||
|
"@odata.count": required.length,
|
||||||
|
"value": required
|
||||||
|
});
|
||||||
|
};
|
||||||
|
|
||||||
|
let filteredWatchedCases = showWatchedCases(data);
|
||||||
|
(setWatchedCases(filteredWatchedCases),
|
||||||
|
getDetailsProxy(
|
||||||
|
filteredWatchedCases,
|
||||||
|
"myWatchedCases"
|
||||||
|
)
|
||||||
.then((data) => {
|
.then((data) => {
|
||||||
setWatchedCasesDetails(data);
|
setWatchedCasesDetails(data);
|
||||||
})
|
})
|
||||||
|
|||||||
@@ -60,7 +60,7 @@ module.exports = {
|
|||||||
"/myportal/[appealtypes]": ["newappeal", "home", "myportal"],
|
"/myportal/[appealtypes]": ["newappeal", "home", "myportal"],
|
||||||
"/newappeal": ["newappeal", "home"],
|
"/newappeal": ["newappeal", "home"],
|
||||||
"/newappeal/*": ["newappeal", "home"],
|
"/newappeal/*": ["newappeal", "home"],
|
||||||
"/newappeal/[appealtypes]": ["newappeal", "home"],
|
"/newappeal/[appealtypes]": ["newappeal", "home", "myportal"],
|
||||||
"/newappeal/selectappeal": ["newappeal", "home"],
|
"/newappeal/selectappeal": ["newappeal", "home"],
|
||||||
"/dns/*": ["dnsCommon", "case", "common"],
|
"/dns/*": ["dnsCommon", "case", "common"],
|
||||||
"/dns/[developmentName]": ["dnsCommon", "case", "common"],
|
"/dns/[developmentName]": ["dnsCommon", "case", "common"],
|
||||||
|
|||||||
Reference in New Issue
Block a user