Merged PR 1731: added scrol ltop on complete

added scrol ltop on complete

Related work items: #17344
This commit is contained in:
Robert Bond
2025-07-08 08:23:00 +00:00
2 changed files with 13 additions and 3 deletions
@@ -36,9 +36,17 @@ const RepComplete = (props) => {
</li> </li>
)); ));
const isSIPS =
props.props.currentView.caseReference.appealType === 846040002;
useEffect(() => { useEffect(() => {
const reference = "PEDW-REPRESENTATION-COMPLETE"; const reference = isSIPS
const templateId = "c49785e7-3217-40b6-b33f-dffc4e58d5c1"; ? "PEDW-CONSULTATION-COMPLETE"
: "PEDW-REPRESENTATION-COMPLETE";
const templateId = isSIPS
? "c3f373ca-df9d-4967-bea0-3ad3a57f8dcc"
: "c49785e7-3217-40b6-b33f-dffc4e58d5c1";
const emailAddress = const emailAddress =
props.props.props.props.accountDetails.accountDetails.emailaddress1; props.props.props.props.accountDetails.accountDetails.emailaddress1;
const personalisation = { const personalisation = {
@@ -83,7 +91,8 @@ const RepComplete = (props) => {
: props.props.currentView.caseReference : props.props.currentView.caseReference
.representationType, .representationType,
}), }),
setRepresentationMessageSent(true)); setRepresentationMessageSent(true)),
window.scrollTo({ top: 0, behavior: "smooth" });
}); });
return ( return (
<div id="rep-appellant"> <div id="rep-appellant">
+1
View File
@@ -65,6 +65,7 @@ let CompleteAppeal = (props) => {
console.log("patching///////////////"); console.log("patching///////////////");
// //
//patchCase(incidentId); //patchCase(incidentId);
window.scrollTo({ top: 0, behavior: "smooth" });
}, [ }, [
props.appealType.caseReference, props.appealType.caseReference,
props.props.form.appealForm.values, props.props.form.appealForm.values,