rep defect 36
This commit is contained in:
@@ -1029,7 +1029,10 @@ let MakeRepresentation = (props) => {
|
|||||||
if (currentView.representationSubmit == true) {
|
if (currentView.representationSubmit == true) {
|
||||||
console.log("capacity", currentView.representationCapacity);
|
console.log("capacity", currentView.representationCapacity);
|
||||||
console.log("has errors:", props.invalid);
|
console.log("has errors:", props.invalid);
|
||||||
Object.assign(values, { "locale": router.locale });
|
Object.assign(values, {
|
||||||
|
"locale": router.locale,
|
||||||
|
"repComplete": currentView.caseReference.currentReference,
|
||||||
|
});
|
||||||
props.invalid == false &&
|
props.invalid == false &&
|
||||||
updateRepresentation(values, false, false);
|
updateRepresentation(values, false, false);
|
||||||
// values.hasOwnProperty("representationDocuments") &&
|
// values.hasOwnProperty("representationDocuments") &&
|
||||||
|
|||||||
@@ -187,39 +187,44 @@ const TopThree = (props) => {
|
|||||||
<div className="cardModuleDetails">
|
<div className="cardModuleDetails">
|
||||||
<div className="cardModuleReference">
|
<div className="cardModuleReference">
|
||||||
<b>{t("myportal:case-reference")}:</b>
|
<b>{t("myportal:case-reference")}:</b>
|
||||||
<Link
|
{showTopThreeArr[key].hasOwnProperty("repComplete") ? (
|
||||||
// href="#"
|
<b>{showTopThreeArr[key].pinswg_name}</b>
|
||||||
href={{
|
) : (
|
||||||
pathname:
|
<Link
|
||||||
router.locale == "cy"
|
// href="#"
|
||||||
? "/fymhorth/representation"
|
href={{
|
||||||
: "/myportal/representation",
|
pathname:
|
||||||
query: {
|
router.locale == "cy"
|
||||||
case: showTopThreeArr[key].caseRef,
|
? "/fymhorth/representation"
|
||||||
state: "edit",
|
: "/myportal/representation",
|
||||||
created: showTopThreeArr[key].repfile_name,
|
query: {
|
||||||
},
|
case: showTopThreeArr[key].caseRef,
|
||||||
}}
|
state: "edit",
|
||||||
className="govuk-link--no-underline"
|
created:
|
||||||
data-id={index}
|
showTopThreeArr[key].repfile_name,
|
||||||
onClick={() => {
|
},
|
||||||
setCurrentReference({
|
}}
|
||||||
"ticketnumber":
|
className="govuk-link--no-underline"
|
||||||
showTopThreeArr[key].ticketnumber,
|
data-id={index}
|
||||||
"currentReference":
|
onClick={() => {
|
||||||
showTopThreeArr[key].caseRef,
|
setCurrentReference({
|
||||||
"currentType": topThreeType,
|
"ticketnumber":
|
||||||
"incidentid":
|
showTopThreeArr[key].ticketnumber,
|
||||||
showTopThreeArr[key].incidentID,
|
"currentReference":
|
||||||
"appealType":
|
showTopThreeArr[key].caseRef,
|
||||||
showTopThreeArr[key].appealType,
|
"currentType": topThreeType,
|
||||||
"repDetails": showTopThreeArr[key],
|
"incidentid":
|
||||||
});
|
showTopThreeArr[key].incidentID,
|
||||||
isLPA && setRepresentationCapacity("lpa");
|
"appealType":
|
||||||
}}
|
showTopThreeArr[key].appealType,
|
||||||
>
|
"repDetails": showTopThreeArr[key],
|
||||||
{showTopThreeArr[key].pinswg_name}
|
});
|
||||||
</Link>
|
isLPA && setRepresentationCapacity("lpa");
|
||||||
|
}}
|
||||||
|
>
|
||||||
|
{showTopThreeArr[key].pinswg_name}
|
||||||
|
</Link>
|
||||||
|
)}
|
||||||
</div>
|
</div>
|
||||||
<div className="cardModuleReference">
|
<div className="cardModuleReference">
|
||||||
<b>{t("myportal:representation-type")}:</b>
|
<b>{t("myportal:representation-type")}:</b>
|
||||||
@@ -269,30 +274,41 @@ const TopThree = (props) => {
|
|||||||
"_pinswg_localplanningauthority_value@OData.Community.Display.V1.FormattedValue"
|
"_pinswg_localplanningauthority_value@OData.Community.Display.V1.FormattedValue"
|
||||||
] || ""}
|
] || ""}
|
||||||
</div>
|
</div>
|
||||||
|
{showTopThreeArr[key].hasOwnProperty("repComplete") && (
|
||||||
|
<div className="cardModuleReference">
|
||||||
|
<b>
|
||||||
|
{" "}
|
||||||
|
{t("myportal:submission-processing-label")}
|
||||||
|
.....
|
||||||
|
</b>
|
||||||
|
</div>
|
||||||
|
)}
|
||||||
</div>
|
</div>
|
||||||
<div className="">
|
{!showTopThreeArr[key].hasOwnProperty("repComplete") && (
|
||||||
<button
|
<div className="">
|
||||||
title={t("case:do-you-want-to-delete-case-label")}
|
<button
|
||||||
className=" cardModuleRemoveCase govuk-link govuk-link--no-underline govuk-link--inverse "
|
title={t("case:do-you-want-to-delete-case-label")}
|
||||||
onClick={() => {
|
className=" cardModuleRemoveCase govuk-link govuk-link--no-underline govuk-link--inverse "
|
||||||
confirm(
|
onClick={() => {
|
||||||
t("case:do-you-want-to-delete-case-label") +
|
confirm(
|
||||||
showTopThreeArr[key].pinswg_name +
|
t("case:do-you-want-to-delete-case-label") +
|
||||||
"?\n" +
|
showTopThreeArr[key].pinswg_name +
|
||||||
t(
|
"?\n" +
|
||||||
"case:do-you-want-to-delete-case-disclaimer-label"
|
t(
|
||||||
)
|
"case:do-you-want-to-delete-case-disclaimer-label"
|
||||||
) &&
|
)
|
||||||
deleteRepItem(
|
) &&
|
||||||
props.accountDetails.containerID,
|
deleteRepItem(
|
||||||
showTopThreeArr[key].pinswg_name,
|
props.accountDetails.containerID,
|
||||||
showTopThreeArr[key].repfile_name
|
showTopThreeArr[key].pinswg_name,
|
||||||
);
|
showTopThreeArr[key].repfile_name
|
||||||
}}
|
);
|
||||||
>
|
}}
|
||||||
—
|
>
|
||||||
</button>
|
—
|
||||||
</div>
|
</button>
|
||||||
|
</div>
|
||||||
|
)}
|
||||||
</div>
|
</div>
|
||||||
);
|
);
|
||||||
});
|
});
|
||||||
|
|||||||
Reference in New Issue
Block a user