Merged PR 1145: removed pinswg_name from appeal json so crm displays correct assigned reference

removed pinswg_name from appeal json so crm displays correct assigned reference

Related work items: #11098
This commit is contained in:
Robert Bond
2024-05-08 16:36:07 +00:00
3 changed files with 75 additions and 63 deletions
+68 -61
View File
@@ -786,72 +786,79 @@ let MakeRepresentation = (props) => {
{Object.keys(
props.props.currentView
.representationCapacity
).length > 0 &&
(savingStatus ? (
<span className=" progress-save-active">
{router.locale == "cy"
? "Nôl data"
: "Saving data"}
<img
className="data-loading-icon"
src="/assets/images/loading.gif"
alt={
router.locale ==
"cy"
? "Nôl data"
: "Saving data"
}
/>
</span>
) : (
<button
className="govuk-button govuk-button--secondary progress-save "
onClick={() => {
let valuesObj =
props.props.form[
props.form
].values || {};
).length > 0 && (
<div className="govuk-grid-row">
{savingStatus ? (
<span className=" progress-save-active">
{router.locale == "cy"
? "Nôl data"
: "Saving data"}
<img
className="data-loading-icon"
src="/assets/images/loading.gif"
alt={
router.locale ==
"cy"
? "Nôl data"
: "Saving data"
}
/>
</span>
) : (
<button
className="govuk-button govuk-button--secondary progress-save "
onClick={() => {
let valuesObj =
props.props
.form[
props.form
].values || {};
console.log(
"valuesobj:",
valuesObj
);
console.log(
"valuesobj:",
valuesObj
);
delete valuesObj[
"_pinswg_appellant_value"
];
delete valuesObj[
"_pinswg_appellant_value"
];
console.log(
"on save:",
valuesObj
);
updateRepresentation(
valuesObj,
false,
true
);
}}
>
{t(
"common:save-exit-button"
)}
</button>
))}
{formObj.hasOwnProperty(
"representationForm"
) &&
formObj[
console.log(
"on save:",
valuesObj
);
updateRepresentation(
valuesObj,
false,
true
);
}}
>
{t(
"common:save-exit-button"
)}
</button>
)}
</div>
)}
<div>
{formObj.hasOwnProperty(
"representationForm"
].hasOwnProperty("values") &&
formObj[
"representationForm"
].values.hasOwnProperty(
"representationType"
) &&
formObj["representationForm"].values
.representationType ==
"Questionnaire" &&
whichProgress()}
formObj[
"representationForm"
].hasOwnProperty("values") &&
formObj[
"representationForm"
].values.hasOwnProperty(
"representationType"
) &&
formObj["representationForm"]
.values
.representationType ==
"Questionnaire" &&
whichProgress()}
</div>
</div>
</div>
</>
@@ -81,7 +81,10 @@ const AwaitingSubmissionFromBlob = (props) => {
"appealComplete"
) ? (
<b>
{showTopThreeArr[index].pinswg_name}
{
showTopThreeArr[index]
.appealComplete
}
</b>
) : (
<Link
@@ -35,9 +35,11 @@ ApiProxy.get(async (req, res) => {
});
Object.assign(blobProgress, {
"appealComplete": true,
"appealComplete": blobProgress.pinswg_name,
});
delete blobProgress["pinswg_name"];
//http: if (hashAPIPath(checkquerypath) == "&hash=" + checkHash) {
await createBlob(JSON.stringify(blobProgress), containerName, tempCaseRef)