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( {Object.keys(
props.props.currentView props.props.currentView
.representationCapacity .representationCapacity
).length > 0 && ).length > 0 && (
(savingStatus ? ( <div className="govuk-grid-row">
<span className=" progress-save-active"> {savingStatus ? (
{router.locale == "cy" <span className=" progress-save-active">
? "Nôl data" {router.locale == "cy"
: "Saving data"} ? "Nôl data"
<img : "Saving data"}
className="data-loading-icon" <img
src="/assets/images/loading.gif" className="data-loading-icon"
alt={ src="/assets/images/loading.gif"
router.locale == alt={
"cy" router.locale ==
? "Nôl data" "cy"
: "Saving data" ? "Nôl data"
} : "Saving data"
/> }
</span> />
) : ( </span>
<button ) : (
className="govuk-button govuk-button--secondary progress-save " <button
onClick={() => { className="govuk-button govuk-button--secondary progress-save "
let valuesObj = onClick={() => {
props.props.form[ let valuesObj =
props.form props.props
].values || {}; .form[
props.form
].values || {};
console.log( console.log(
"valuesobj:", "valuesobj:",
valuesObj valuesObj
); );
delete valuesObj[ delete valuesObj[
"_pinswg_appellant_value" "_pinswg_appellant_value"
]; ];
console.log( console.log(
"on save:", "on save:",
valuesObj valuesObj
); );
updateRepresentation( updateRepresentation(
valuesObj, valuesObj,
false, false,
true true
); );
}} }}
> >
{t( {t(
"common:save-exit-button" "common:save-exit-button"
)} )}
</button> </button>
))} )}
{formObj.hasOwnProperty( </div>
"representationForm" )}
) && <div>
formObj[ {formObj.hasOwnProperty(
"representationForm" "representationForm"
].hasOwnProperty("values") &&
formObj[
"representationForm"
].values.hasOwnProperty(
"representationType"
) && ) &&
formObj["representationForm"].values formObj[
.representationType == "representationForm"
"Questionnaire" && ].hasOwnProperty("values") &&
whichProgress()} formObj[
"representationForm"
].values.hasOwnProperty(
"representationType"
) &&
formObj["representationForm"]
.values
.representationType ==
"Questionnaire" &&
whichProgress()}
</div>
</div> </div>
</div> </div>
</> </>
@@ -81,7 +81,10 @@ const AwaitingSubmissionFromBlob = (props) => {
"appealComplete" "appealComplete"
) ? ( ) ? (
<b> <b>
{showTopThreeArr[index].pinswg_name} {
showTopThreeArr[index]
.appealComplete
}
</b> </b>
) : ( ) : (
<Link <Link
@@ -35,9 +35,11 @@ ApiProxy.get(async (req, res) => {
}); });
Object.assign(blobProgress, { Object.assign(blobProgress, {
"appealComplete": true, "appealComplete": blobProgress.pinswg_name,
}); });
delete blobProgress["pinswg_name"];
//http: if (hashAPIPath(checkquerypath) == "&hash=" + checkHash) { //http: if (hashAPIPath(checkquerypath) == "&hash=" + checkHash) {
await createBlob(JSON.stringify(blobProgress), containerName, tempCaseRef) await createBlob(JSON.stringify(blobProgress), containerName, tempCaseRef)