-
Notifications
You must be signed in to change notification settings - Fork 1
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
KBV-366-update-address-confirm-page #105
Conversation
Kudos, SonarCloud Quality Gate passed! |
} | ||
locals.currentAddressRowValue = currentAddress.text; | ||
locals.yearMovedRowValue = currentAddress.addressValidFrom; | ||
locals.previousAddressRowValue = previousAddress?.text; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Setting variables for the govuk summery list here
@@ -63,7 +64,8 @@ class AddressConfirmController extends BaseController { | |||
buildingNameNumber = address.buildingName || address.buildingNumber; | |||
} | |||
|
|||
return `${buildingNameNumber}<br>${address.streetName},<br>${address.addressLocality},<br>${address.postalCode}<br>`; | |||
const text = `${buildingNameNumber}<br>${address.streetName},<br>${address.addressLocality},<br>${address.postalCode}<br>`; | |||
return { ...address, text }; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
We're returning the formatted text with the address data now rather than just the formatted text of the address.
items: [ | ||
{ | ||
href: "#", | ||
text: translate("fields.address-confirm.change") |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This will be added once we add the change links
Proposed changes
What changed
changes to the design of the address confirm page to use the govuk summary component.
These changes are in a list of design changes. Additional logic changes are to come.
Why did it change
Align with design changes.
Issue tracking