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

18202 show both named and numbered option for LTD company #735

Merged
merged 13 commits into from
Oct 26, 2023
27 changes: 22 additions & 5 deletions src/components/new-request/search.vue
Original file line number Diff line number Diff line change
Expand Up @@ -240,7 +240,7 @@
<!-- Restoration / Reinstatement flow -->
<template v-else-if="isRestoration">
<BusinessLookupFetch />
<CompanyType v-if="getSearchBusiness && isBcRestorable && isSupportedRestoration(getEntityTypeCd)" />
<CompanyType v-if="getSearchBusiness && isBcRestorable && isNumberedEntityType" />
severinbeauvais marked this conversation as resolved.
Show resolved Hide resolved
<Jurisdiction
v-if="isSelectedXproAndRestorable"
cols="12"
Expand All @@ -250,7 +250,7 @@
<!-- federal sub-flow -->
<XproFederalBullets v-if="isFederal && getSearchBusiness" />

<template v-if="(isRestorable && !isFederal) && (isNamedCompany || !isSupportedRestoration(getEntityTypeCd))">
<template v-if="(isRestorable && !isFederal) && (isNamedCompany || isCooperative || isCreditUnion || isSelectedCompanyXPro)">

Check warning on line 253 in src/components/new-request/search.vue

View workflow job for this annotation

GitHub Actions / linting (20.5.1)

This line has a length of 133. Maximum allowed is 120
severinbeauvais marked this conversation as resolved.
Show resolved Hide resolved
<v-col
cols="12"
:md="(showDesignation || isSelectedXproAndRestorable) ? '8' : '12'"
Expand Down Expand Up @@ -291,7 +291,7 @@
:href="colinLink"
target="_blank"
>
Go to Corporate Online to {{ isConversion ? 'Alter' : 'Register' }}
{{ colinButtonText }}
<v-icon
right
small
Expand Down Expand Up @@ -459,6 +459,10 @@
return (this.getEntityTypeCd === EntityTypes.CP)
}

get isCreditUnion (): boolean {
return (this.getEntityTypeCd === EntityTypes.FI)
}

get isSociety (): boolean {
return (this.isSocietyEnabled() && this.getEntityTypeCd === EntityTypes.SO)
}
Expand Down Expand Up @@ -563,6 +567,20 @@
return false
}

/** Retrieve text for COLIN button based on selected action/flow */
get colinButtonText (): string {
var colinText = ''
severinbeauvais marked this conversation as resolved.
Show resolved Hide resolved
if (this.isConversion) {
colinText = 'Alter'
} else if (this.isRestoration) {
colinText = 'Restore'
} else if (this.isChangeName) {
colinText = 'Change Name'
} else {
colinText = 'Register'
} return 'Go to Corporate Online to ' + colinText
severinbeauvais marked this conversation as resolved.
Show resolved Hide resolved
}

/** Retrieve text based on selected action/flow */
get actionNowButtonText (): string {
if (this.isContinuationIn) return 'Continue In Now'
Expand Down Expand Up @@ -622,8 +640,7 @@
if (this.isRestoration) {
if (this.getEntityTypeCd && this.isNamedCompany && !this.isFederal) return true
if (this.getEntityTypeCd && this.isSelectedXproAndRestorable && !this.isFederal) return true
if (this.getSearchBusiness && this.isBcRestorable &&
!this.isSupportedRestoration(this.getEntityTypeCd)) return true
if (this.getSearchBusiness && this.isBcRestorable && (this.isNamedCompany || this.isCooperative || this.isCreditUnion)) return true
}

// Conditional for Continuation In Flow.
Expand Down
Loading