Skip to content

Commit

Permalink
17322-alter logic to show numbered options
Browse files Browse the repository at this point in the history
  • Loading branch information
ketaki-deodhar committed Aug 10, 2023
1 parent 2091e3c commit 480db34
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 4 deletions.
6 changes: 2 additions & 4 deletions src/components/new-request/search.vue
Original file line number Diff line number Diff line change
Expand Up @@ -349,6 +349,7 @@ export default class Search extends Mixins(CommonMixin) {
@Getter getLocationText!: string
@Getter getRequestActionCd!: NrRequestActionCodes
@Getter isMobile!: boolean
@Getter isBcCcCrUl!: boolean
// Global actions
@Action setConversionType!: ActionBindingIF
Expand Down Expand Up @@ -554,10 +555,7 @@ export default class Search extends Mixins(CommonMixin) {
}
get showCompanyRadioBtn (): boolean {
if (this.getEntityTypeCd === EntityType.CP) {
this.selectedCompanyType = CompanyType.NAMED_COMPANY
}
return this.getEntityTypeCd !== EntityType.CP
return this.isBcCcCrUl
}
get jurisdictionOptions () {
Expand Down
10 changes: 10 additions & 0 deletions src/store/getters.ts
Original file line number Diff line number Diff line change
Expand Up @@ -1188,3 +1188,13 @@ export const getIncorporateNowErrorStatus = (state: StateIF): boolean => {
export const getBusinessLookup = (state: StateIF): BusinessLookupResultIF => {
return state.stateModel.newRequestModel.businessLookup
}

/** Check if BC company, CCC, Corporation or ULC */
export const isBcCcCrUl = (state: StateIF): boolean => {
return (
getEntityTypeCd(state) === EntityType.BC ||
getEntityTypeCd(state) === EntityType.CC ||
getEntityTypeCd(state) === EntityType.CR ||
getEntityTypeCd(state) === EntityType.UL
)
}

0 comments on commit 480db34

Please sign in to comment.