-
Notifications
You must be signed in to change notification settings - Fork 0
NGR-1091 - Amended as per Anna's comments #62
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
Conversation
|
private lazy val otherRadioEmptyError = "landlord.radio.other.empty.error" | ||
private lazy val otherRadioTooLongError = "landlord.radio.other.tooLong.error" | ||
private lazy val landlordRadioEmptyError = "landlord.radio.other.empty.error" | ||
private lazy val landlordRadioTooLongError = "landlord.radio.other.tooLong.error" |
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.
Do you mean landloardRelationshipTooLongError?
|
||
private def isOtherTextEmpty[A]: Constraint[A] = | ||
Constraint((input: A) => | ||
val rentBasedOnForm = input.asInstanceOf[LandlordForm] |
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.
I know it wasn't you. Can you please change from rentBasedOnForm to landlordForm?
Some((landlordForm.landlordName, landlordForm.landLordType, landlordForm.landlordOther)) | ||
Some((landlordForm.landlordName, landlordForm.hasRelationship, landlordForm.landlordRelationship)) | ||
|
||
private def isOtherTextEmpty[A]: Constraint[A] = |
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.
isLandloardRelationshipTextEmpty?
Valid | ||
) | ||
|
||
private def otherTextMaxLength[A]: Constraint[A] = |
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.
landLordRelationshipMaxLength?
conf/messages
Outdated
landlord.name.empty.tooLong.error = Landlord''s full name must be 50 characters or less | ||
landlord.radio.empty.error = Select what your relationship with the landlord is | ||
landlord.radio.other.empty.error = Tell us what your relationship with the landlord is | ||
landlord.radio.other.tooLong.error = Maximum character allowed is 250 |
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.
Can you please change other to something else? As other doesn't exist any more.
|
||
private def otherTextMaxLength[A]: Constraint[A] = | ||
Constraint((input: A) => | ||
val rentBasedOnForm = input.asInstanceOf[LandlordForm] |
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.
I know it wasn't you. Can you please change from rentBasedOnForm to landlordForm?
Original PR was #57