Merged PR 1141: update state order
update state order Related work items: #11021
This commit is contained in:
@@ -120,6 +120,7 @@ let BuildCheckSection = (props) => {
|
||||
};
|
||||
|
||||
const finaliseAppeal = async () => {
|
||||
setFinaliseAppealProcess(true);
|
||||
console.log("finalising appeal:");
|
||||
await generateAppealPDF(
|
||||
pdfObj,
|
||||
@@ -136,12 +137,8 @@ let BuildCheckSection = (props) => {
|
||||
props.appealType.caseReference.ticketnumber
|
||||
);
|
||||
})
|
||||
.then((data) => {
|
||||
setFinaliseAppealProcess(true);
|
||||
return data;
|
||||
})
|
||||
.then((data) => {
|
||||
console.log("have sent comple message :", data);
|
||||
.then(() => {
|
||||
console.log("have sent complete message :");
|
||||
setCurrentSection(9999);
|
||||
});
|
||||
};
|
||||
|
||||
@@ -131,56 +131,6 @@ const BuildProgress = (props) => {
|
||||
))}
|
||||
</ol>
|
||||
</div>
|
||||
|
||||
{/* <ol className="govuk-list" id="progress-list">
|
||||
<ul className="govuk-list ">
|
||||
<li className="at-nav__page">
|
||||
<ol className="govuk-list">
|
||||
{Object.keys(progObj).map((key, index) =>
|
||||
parseInt(key) + 1 == currentSection ? (
|
||||
<li key={key}>
|
||||
<b>
|
||||
{FieldsTranslations(
|
||||
progObj[index].title
|
||||
)}
|
||||
</b>
|
||||
</li>
|
||||
) : (
|
||||
<li key={key}>
|
||||
{" "}
|
||||
<span
|
||||
title={
|
||||
progObj[index].title +
|
||||
` complete`
|
||||
}
|
||||
className={
|
||||
progObj[index]
|
||||
.allFieldsComplete ==
|
||||
true
|
||||
? `sectionCompleteTick`
|
||||
: `sectionIncomplete`
|
||||
}
|
||||
></span>
|
||||
<a
|
||||
className="govuk-link"
|
||||
href="#"
|
||||
onClick={() => {
|
||||
gotoSection(
|
||||
parseInt(key) + 1
|
||||
);
|
||||
}}
|
||||
>
|
||||
{FieldsTranslations(
|
||||
progObj[index].title
|
||||
)}
|
||||
</a>
|
||||
</li>
|
||||
)
|
||||
)}
|
||||
</ol>
|
||||
</li>
|
||||
</ul>
|
||||
</ol> */}
|
||||
</nav>
|
||||
|
||||
{Object.keys(documentListObj).length > 0 && (
|
||||
|
||||
@@ -43,7 +43,9 @@ ApiProxy.get(async (req, res) => {
|
||||
await createBlob(JSON.stringify(blobProgress), containerName, tempCaseRef)
|
||||
.then(() => {
|
||||
createCaseCompleteMessage(containerName, tempCaseRef);
|
||||
return res.status(200).json(data);
|
||||
return res.status(200).json({
|
||||
status: "success",
|
||||
});
|
||||
})
|
||||
.catch((error) => {
|
||||
console.log(
|
||||
|
||||
Reference in New Issue
Block a user