rep defect 36
This commit is contained in:
@@ -1029,7 +1029,10 @@ let MakeRepresentation = (props) => {
|
||||
if (currentView.representationSubmit == true) {
|
||||
console.log("capacity", currentView.representationCapacity);
|
||||
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 &&
|
||||
updateRepresentation(values, false, false);
|
||||
// values.hasOwnProperty("representationDocuments") &&
|
||||
|
||||
@@ -187,6 +187,9 @@ const TopThree = (props) => {
|
||||
<div className="cardModuleDetails">
|
||||
<div className="cardModuleReference">
|
||||
<b>{t("myportal:case-reference")}:</b>
|
||||
{showTopThreeArr[key].hasOwnProperty("repComplete") ? (
|
||||
<b>{showTopThreeArr[key].pinswg_name}</b>
|
||||
) : (
|
||||
<Link
|
||||
// href="#"
|
||||
href={{
|
||||
@@ -197,7 +200,8 @@ const TopThree = (props) => {
|
||||
query: {
|
||||
case: showTopThreeArr[key].caseRef,
|
||||
state: "edit",
|
||||
created: showTopThreeArr[key].repfile_name,
|
||||
created:
|
||||
showTopThreeArr[key].repfile_name,
|
||||
},
|
||||
}}
|
||||
className="govuk-link--no-underline"
|
||||
@@ -220,6 +224,7 @@ const TopThree = (props) => {
|
||||
>
|
||||
{showTopThreeArr[key].pinswg_name}
|
||||
</Link>
|
||||
)}
|
||||
</div>
|
||||
<div className="cardModuleReference">
|
||||
<b>{t("myportal:representation-type")}:</b>
|
||||
@@ -269,7 +274,17 @@ const TopThree = (props) => {
|
||||
"_pinswg_localplanningauthority_value@OData.Community.Display.V1.FormattedValue"
|
||||
] || ""}
|
||||
</div>
|
||||
{showTopThreeArr[key].hasOwnProperty("repComplete") && (
|
||||
<div className="cardModuleReference">
|
||||
<b>
|
||||
{" "}
|
||||
{t("myportal:submission-processing-label")}
|
||||
.....
|
||||
</b>
|
||||
</div>
|
||||
)}
|
||||
</div>
|
||||
{!showTopThreeArr[key].hasOwnProperty("repComplete") && (
|
||||
<div className="">
|
||||
<button
|
||||
title={t("case:do-you-want-to-delete-case-label")}
|
||||
@@ -293,6 +308,7 @@ const TopThree = (props) => {
|
||||
—
|
||||
</button>
|
||||
</div>
|
||||
)}
|
||||
</div>
|
||||
);
|
||||
});
|
||||
|
||||
Reference in New Issue
Block a user