Skip to content

Commit

Permalink
Update foreign company error messages (bcgov#599)
Browse files Browse the repository at this point in the history
  • Loading branch information
leodube-aot authored and JazzarKarim committed Jan 26, 2024
1 parent ecc728f commit af0bf16
Showing 1 changed file with 9 additions and 5 deletions.
14 changes: 9 additions & 5 deletions src/components/Amalgamation/AmalgamatingBusinesses.vue
Original file line number Diff line number Diff line change
Expand Up @@ -112,7 +112,7 @@
v-model="legalName"
filled
label="Business' full legal name in home jurisdiction"
:rules="foreignBusinessRules"
:rules="foreignBusinessLegalNameRules"
/>
</v-col>
<v-col
Expand All @@ -124,7 +124,7 @@
v-model="corpNumber"
filled
label="Corporate number in home jurisdiction"
:rules="foreignBusinessRules"
:rules="foreignBusinessCorpNumberRules"
/>
</v-col>
<v-col
Expand Down Expand Up @@ -236,8 +236,12 @@ export default class AmalgamatingBusinesses extends Mixins(AmalgamationMixin, Co
isAddingAmalgamatingForeignBusiness = false
/** TextField rules for "Add an Amalgamating Foreign Business" Panel. */
get foreignBusinessRules (): Array<(v) => boolean | string> {
return [ v => !!v || 'Required.' ]
get foreignBusinessLegalNameRules (): Array<(v) => boolean | string> {
return [ v => !!v || 'Full legal name is required' ]
}
get foreignBusinessCorpNumberRules (): Array<(v) => boolean | string> {
return [ v => !!v || 'Corporate number is required' ]
}
/** Called when Jurisdiction menu item is changed. */
Expand Down Expand Up @@ -362,7 +366,7 @@ export default class AmalgamatingBusinesses extends Mixins(AmalgamationMixin, Co
this.legalName &&
this.corpNumber
)
this.jurisdictionErrorMessage = this.jurisdiction ? '' : 'Required.'
this.jurisdictionErrorMessage = this.jurisdiction ? '' : 'Home jurisdiction is required'
this.$refs.foreignBusinessForm.validate()
}
Expand Down

0 comments on commit af0bf16

Please sign in to comment.