Skip to content
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

Merged
merged 4 commits into from
Dec 6, 2022

Conversation

prit-cgi
Copy link
Contributor

@prit-cgi prit-cgi commented Dec 5, 2022

No description provided.

@@ -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 !== ''
Copy link
Contributor

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

Comment on lines 93 to 97
<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>
Copy link
Contributor

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

Comment on lines 16 to 17
this.mailingAddress3Input = Selector('#mailingCity')
this.mailingAddress4Input = Selector('#mailingProvince')
Copy link
Contributor

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

Comment on lines 11 to 12
this.address3Input = Selector('#city')
this.address4Input = Selector('#province')
Copy link
Contributor

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

Comment on lines 9 to 10
const INVALID_ADDRESS_LINE3_MESSAGE = 'City is invalid'
const INVALID_ADDRESS_LINE4_MESSAGE = 'Province is invalid'
Copy link
Contributor

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

Copy link
Contributor

@AnumehaSrivastava05 AnumehaSrivastava05 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Changes looks good

@prit-cgi prit-cgi merged commit e88ef79 into main Dec 6, 2022
@prit-cgi prit-cgi deleted the 7836-Improve-Address-input-for-R38 branch December 6, 2022 19:06
weskubo-cgi pushed a commit that referenced this pull request Dec 9, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants