appelacomplete tag on completion
This commit is contained in:
@@ -77,7 +77,13 @@ const AwaitingSubmissionFromBlob = (props) => {
|
|||||||
<div className="cardModuleDetails">
|
<div className="cardModuleDetails">
|
||||||
<div className="cardModuleReference">
|
<div className="cardModuleReference">
|
||||||
<b>{t("myportal:temp-reference")}:</b>
|
<b>{t("myportal:temp-reference")}:</b>
|
||||||
|
{showTopThreeArr[key].hasOwnProperty(
|
||||||
|
"appealComplete"
|
||||||
|
) ? (
|
||||||
|
<b>
|
||||||
|
{showTopThreeArr[index].pinswg_name}
|
||||||
|
</b>
|
||||||
|
) : (
|
||||||
<Link
|
<Link
|
||||||
href={
|
href={
|
||||||
(router.locale == "cy"
|
(router.locale == "cy"
|
||||||
@@ -93,7 +99,8 @@ const AwaitingSubmissionFromBlob = (props) => {
|
|||||||
showTopThreeArr[key]
|
showTopThreeArr[key]
|
||||||
.pinswg_appealcasetype +
|
.pinswg_appealcasetype +
|
||||||
"&casereference=" +
|
"&casereference=" +
|
||||||
showTopThreeArr[key].pinswg_name +
|
showTopThreeArr[key]
|
||||||
|
.pinswg_name +
|
||||||
"&inid=" +
|
"&inid=" +
|
||||||
showTopThreeArr[key].incidentid
|
showTopThreeArr[key].incidentid
|
||||||
}
|
}
|
||||||
@@ -120,6 +127,7 @@ const AwaitingSubmissionFromBlob = (props) => {
|
|||||||
>
|
>
|
||||||
{showTopThreeArr[index].pinswg_name}
|
{showTopThreeArr[index].pinswg_name}
|
||||||
</Link>
|
</Link>
|
||||||
|
)}
|
||||||
</div>
|
</div>
|
||||||
<div>
|
<div>
|
||||||
<b>LPA reference:</b>{" "}
|
<b>LPA reference:</b>{" "}
|
||||||
@@ -227,7 +235,17 @@ const AwaitingSubmissionFromBlob = (props) => {
|
|||||||
showTopThreeArrDets[key].createdon
|
showTopThreeArrDets[key].createdon
|
||||||
)}
|
)}
|
||||||
</div>{" "}
|
</div>{" "}
|
||||||
|
{showTopThreeArr[key].hasOwnProperty(
|
||||||
|
"appealComplete"
|
||||||
|
) && (
|
||||||
|
<div className="cardModuleReference">
|
||||||
|
<b>Submission processing.....</b>
|
||||||
</div>
|
</div>
|
||||||
|
)}
|
||||||
|
</div>
|
||||||
|
{!showTopThreeArr[key].hasOwnProperty(
|
||||||
|
"appealComplete"
|
||||||
|
) && (
|
||||||
<div className="">
|
<div className="">
|
||||||
<button
|
<button
|
||||||
title={t(
|
title={t(
|
||||||
@@ -248,13 +266,15 @@ const AwaitingSubmissionFromBlob = (props) => {
|
|||||||
) &&
|
) &&
|
||||||
deleteCaseItem(
|
deleteCaseItem(
|
||||||
props.containerID,
|
props.containerID,
|
||||||
showTopThreeArr[key].pinswg_name
|
showTopThreeArr[key]
|
||||||
|
.pinswg_name
|
||||||
);
|
);
|
||||||
}}
|
}}
|
||||||
>
|
>
|
||||||
—
|
—
|
||||||
</button>
|
</button>
|
||||||
</div>
|
</div>
|
||||||
|
)}
|
||||||
</div>
|
</div>
|
||||||
);
|
);
|
||||||
})}
|
})}
|
||||||
|
|||||||
@@ -109,14 +109,10 @@ let CompleteAppeal = (props) => {
|
|||||||
<div className="govuk-grid-row">
|
<div className="govuk-grid-row">
|
||||||
<div className="govuk-grid-column-two-thirds">
|
<div className="govuk-grid-column-two-thirds">
|
||||||
<div className="govuk-panel govuk-panel--confirmation">
|
<div className="govuk-panel govuk-panel--confirmation">
|
||||||
<h1 className="govuk-panel__title">Appeal complete</h1>
|
<h1 className="govuk-panel__title">
|
||||||
<div className="govuk-panel__body">
|
Appeal Submission complete
|
||||||
Your reference number
|
</h1>
|
||||||
<br />
|
<div className="govuk-panel__body"></div>
|
||||||
<strong>
|
|
||||||
{props.appealType.caseReference.ticketnumber}
|
|
||||||
</strong>
|
|
||||||
</div>
|
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
<p className="govuk-body">
|
<p className="govuk-body">
|
||||||
|
|||||||
@@ -1,7 +1,9 @@
|
|||||||
import { hashAPIPath } from "../../../actions";
|
import { hashAPIPath } from "../../../actions";
|
||||||
import {
|
import {
|
||||||
getBlobs,
|
|
||||||
createCaseCompleteMessage,
|
createCaseCompleteMessage,
|
||||||
|
getProgressBlobs,
|
||||||
|
downloadProgressFile,
|
||||||
|
createBlob,
|
||||||
} from "../../../actions/azurestorage";
|
} from "../../../actions/azurestorage";
|
||||||
|
|
||||||
import nextConnect from "next-connect";
|
import nextConnect from "next-connect";
|
||||||
@@ -25,8 +27,20 @@ ApiProxy.get(async (req, res) => {
|
|||||||
"&tempcaseref=" +
|
"&tempcaseref=" +
|
||||||
tempCaseRef;
|
tempCaseRef;
|
||||||
|
|
||||||
|
const blobProgress = await getProgressBlobs(
|
||||||
|
containerName,
|
||||||
|
tempCaseRef
|
||||||
|
).then((data) => {
|
||||||
|
return downloadProgressFile(containerName, data.path, tempCaseRef);
|
||||||
|
});
|
||||||
|
|
||||||
|
Object.assign(blobProgress, {
|
||||||
|
"appealComplete": true,
|
||||||
|
});
|
||||||
|
|
||||||
//http: if (hashAPIPath(checkquerypath) == "&hash=" + checkHash) {
|
//http: if (hashAPIPath(checkquerypath) == "&hash=" + checkHash) {
|
||||||
await createCaseCompleteMessage(containerName, tempCaseRef).then((data) => {
|
await createCaseCompleteMessage(containerName, tempCaseRef).then((data) => {
|
||||||
|
createBlob(JSON.stringify(blobProgress), containerName, tempCaseRef);
|
||||||
return res.status(200).json(data);
|
return res.status(200).json(data);
|
||||||
});
|
});
|
||||||
// } else {
|
// } else {
|
||||||
|
|||||||
Binary file not shown.
Reference in New Issue
Block a user