-
Notifications
You must be signed in to change notification settings - Fork 0
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
7836 improve address input for r38 #150
Conversation
frontend/src/util/validators.js
Outdated
@@ -186,7 +185,7 @@ function validateSpecialCharactersForAddress(input, length) { | |||
* Used to validate that Mailing Address line 1 must be completed if any other Mailing Address(Line 2, Line 3, Line 4, PostalCode) is complete | |||
*/ | |||
export function validateMailingAddress() { | |||
return this.mailingAddress.addressLine2 !== '' || this.mailingAddress.addressLine3 !== '' || this.mailingAddress.addressLine4 !== '' || this.mailingAddress.postalCode !== '' | |||
return this.mailingAddress.addressLine2 !== '' || this.mailingAddress.city !== '' || this.mailingAddress.province !== '' || this.mailingAddress.postalCode !== '' |
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.
addressline3 and addressline4 still being used by other transactions. Create a new function for now
<h2 class="result-text">Transaction Completed for:</h2> | ||
<div> | ||
<div><span class="result-text"> Group Number: </span>{{ groupNumber }}</div> | ||
<div><span class="result-text">PHN: </span>{{ result?.phn }}</div> | ||
</div> |
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.
Refer UpdateNumberAndDept.vue for consistency
this.mailingAddress3Input = Selector('#mailingCity') | ||
this.mailingAddress4Input = Selector('#mailingProvince') |
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.
Change it to this.mailingAddressCityInput & this.mailingAddressProvinceInput
this.address3Input = Selector('#city') | ||
this.address4Input = Selector('#province') |
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.
Change it to this.homeAddressCityInput & this.homeAddressProvinceInput
const INVALID_ADDRESS_LINE3_MESSAGE = 'City is invalid' | ||
const INVALID_ADDRESS_LINE4_MESSAGE = 'Province is invalid' |
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.
It should INVALID_CITY_MESSAGE & INVALID_PROVINCE_MESSAGE
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.
Changes looks good
This reverts commit e88ef79.
No description provided.