Skip to content

Commit

Permalink
- simplified Change Name flow
Browse files Browse the repository at this point in the history
- fixed indentation
- simplified Restoration / Reinstatement flow
- also added SO to FF (in LaunchDarkly)
  • Loading branch information
severinbeauvais committed Oct 31, 2023
1 parent eed6695 commit 4cea5ca
Showing 1 changed file with 37 additions and 35 deletions.
72 changes: 37 additions & 35 deletions src/components/new-request/search.vue
Original file line number Diff line number Diff line change
Expand Up @@ -107,7 +107,7 @@
:type="'request a name for'"
:showDialog="showSocietiesInfo"
/>
<template v-if="isNameChangeable && !isSocietyDisabled">
<template v-else-if="isNameChangeable">
<!-- XPRO jurisdiction -->
<Jurisdiction
v-if="isChangeNameXpro"
Expand Down Expand Up @@ -242,47 +242,49 @@

<!-- Restoration / Reinstatement flow -->
<template v-else-if="isRestoration">
<BusinessLookupFetch ref="MyBusinessLookup"/>
<BusinessLookupFetch ref="MyBusinessLookup" />
<SocietiesInfo
v-if="isSocietyDisabled && showSocietiesInfo"
:type="'restore'"
v-if="isSocietyDisabled && showSocietiesInfo"
:type="'restore'"
:showDialog="showSocietiesInfo"
/>
<CompanyType v-if="getSearchBusiness && isBcRestorable && isSupportedRestoration(getEntityTypeCd) && !isSocietyDisabled" />
<Jurisdiction
v-if="isSelectedXproAndRestorable && !isSocietyDisabled"
cols="12"
md="4"
/>

<!-- federal sub-flow -->
<XproFederalBullets v-if="isFederal && getSearchBusiness" />

<template v-if="showRestoreNameInput && !isSocietyDisabled">
<v-col
cols="12"
:md="(showDesignation || isSelectedXproAndRestorable) ? '8' : '12'"
>
<NameInput
:is-mras-search="(isXproFlow && isMrasJurisdiction && !getHasNoCorpNum)"
@emit-corp-num-validity="corpNumValid = $event"
/>
</v-col>
<Designation
v-if="showDesignation"
<template v-else>
<CompanyType v-if="getSearchBusiness && isBcRestorable && isSupportedRestoration(getEntityTypeCd)" />
<Jurisdiction
v-if="isSelectedXproAndRestorable && !isSocietyDisabled"
cols="12"
md="4"
/>
<v-col
v-if="isMrasJurisdiction"
cols="12"
class="d-flex justify-end"
>
<CorpNumberCheckbox />
</v-col>
</template>

<NumberedCompanyBullets v-if="isNumberedCompany" />
<!-- federal sub-flow -->
<XproFederalBullets v-if="isFederal && getSearchBusiness" />

<template v-if="showRestoreNameInput && !isSocietyDisabled">
<v-col
cols="12"
:md="(showDesignation || isSelectedXproAndRestorable) ? '8' : '12'"
>
<NameInput
:is-mras-search="(isXproFlow && isMrasJurisdiction && !getHasNoCorpNum)"
@emit-corp-num-validity="corpNumValid = $event"
/>
</v-col>
<Designation
v-if="showDesignation"
cols="12"
md="4"
/>
<v-col
v-if="isMrasJurisdiction"
cols="12"
class="d-flex justify-end"
>
<CorpNumberCheckbox />
</v-col>
</template>

<NumberedCompanyBullets v-if="isNumberedCompany" />
</template>
</template>
</v-row>

Expand Down

0 comments on commit 4cea5ca

Please sign in to comment.