Skip to content

Commit

Permalink
Remove folio number from define business section
Browse files Browse the repository at this point in the history
  • Loading branch information
lambert-alex committed Jun 16, 2022
1 parent 85fa1e2 commit c98aa0a
Showing 1 changed file with 2 additions and 35 deletions.
37 changes: 2 additions & 35 deletions src/views/Registration/RegistrationDefineBusiness.vue
Original file line number Diff line number Diff line change
Expand Up @@ -119,26 +119,6 @@
/>
</v-card>
</section>

<!-- Folio or Reference Number -->
<section class="mt-10" v-if="isPremiumAccount">
<header id="folio-number-header">
<h2>Folio or Reference Number</h2>
<p class="mt-4">
Add an optional Folio or Reference Number to this business for your own tracking purposes. This
information is not used by the BC Business Registry.
</p>
</header>

<v-card flat class="step-container" :class="{ 'invalid-section': getShowErrors && !folioNumberValid }">
<FolioNumber
:initialValue="getFolioNumber"
:isEditing="true"
@update="setFolioNumber($event)"
@valid="onFolioNumberValidEvent($event)"
/>
</v-card>
</section>
</div>
</template>

Expand All @@ -149,7 +129,6 @@ import BusinessAddresses from '@/components/Registration/BusinessAddresses.vue'
import BusinessContactInfo from '@/components/common/BusinessContactInfo.vue'
import BusinessNumber from '@/components/Registration/BusinessNumber.vue'
import BusinessTypeConfirm from '@/components/Registration/BusinessTypeConfirm.vue'
import FolioNumber from '@/components/common/FolioNumber.vue'
import NameRequestInfo from '@/components/common/NameRequestInfo.vue'
import NatureOfBusiness from '@/components/Registration/NatureOfBusiness.vue'
import StartDate from '@/components/Registration/StartDate.vue'
Expand All @@ -163,7 +142,6 @@ import { CommonMixin } from '@/mixins'
BusinessContactInfo,
BusinessNumber,
BusinessTypeConfirm,
FolioNumber,
NameRequestInfo,
NatureOfBusiness,
StartDate
Expand All @@ -173,13 +151,10 @@ export default class RegistrationDefineBusiness extends Mixins(CommonMixin) {
@Getter getBusinessContact!: ContactPointIF
@Getter getRegistration!: RegistrationStateIF
@Getter getShowErrors!: boolean
@Getter isPremiumAccount!: boolean
@Getter getFolioNumber!: string
@Getter isTypePartnership!: boolean
@Action setBusinessContact!: ActionBindingIF
@Action setRegistrationDefineBusinessValid!: ActionBindingIF
@Action setFolioNumber!: ActionBindingIF
@Action setRegistrationBusinessNumber!: ActionBindingIF
@Action setRegistrationBusinessTypeConfirm!: ActionBindingIF
Expand All @@ -190,7 +165,6 @@ export default class RegistrationDefineBusiness extends Mixins(CommonMixin) {
businessAddressesValid = false
businessContactValid = false
startDateValid = false
folioNumberValid = false
/** Object of valid flags. Must match validComponents. */
get validFlags (): object {
Expand All @@ -200,8 +174,7 @@ export default class RegistrationDefineBusiness extends Mixins(CommonMixin) {
businessNumberValid: this.isTypePartnership ? this.businessNumberValid : true,
businessAddressesValid: this.businessAddressesValid,
businessContactValid: this.businessContactValid,
businessStartDateValid: this.startDateValid,
folioNumberValid: !this.isPremiumAccount || this.folioNumberValid
businessStartDateValid: this.startDateValid
}
}
Expand All @@ -212,8 +185,7 @@ export default class RegistrationDefineBusiness extends Mixins(CommonMixin) {
'business-number-header',
'business-addresses-header',
'business-contact-header',
'business-start-date-header',
'folio-number-header'
'business-start-date-header'
]
/** True if all flags are valid. */
Expand Down Expand Up @@ -253,11 +225,6 @@ export default class RegistrationDefineBusiness extends Mixins(CommonMixin) {
this.setRegistrationDefineBusinessValid(this.allFlagsValid)
}
onFolioNumberValidEvent (valid: boolean): void {
this.folioNumberValid = valid
this.setRegistrationDefineBusinessValid(this.allFlagsValid)
}
@Watch('$route')
async scrollToInvalidComponent (): Promise<void> {
if (this.getShowErrors && this.$route.name === RouteNames.REGISTRATION_DEFINE_BUSINESS) {
Expand Down

0 comments on commit c98aa0a

Please sign in to comment.