From 52cf35409545288858d0c4725b23ebcae72814ff Mon Sep 17 00:00:00 2001 From: Severin Beauvais Date: Thu, 19 Oct 2023 15:29:06 -0700 Subject: [PATCH] - app version = 5.2.14 - updated "not restorable" error text (per Janis) - added missing mapping to isChangeNameXpro() - added missing mapping to isSelectedXproAndRestorable() --- package-lock.json | 4 ++-- package.json | 2 +- .../new-request/search-components/business-lookup-fetch.vue | 2 +- src/mixins/search-mixin.ts | 6 ++++-- 4 files changed, 8 insertions(+), 6 deletions(-) diff --git a/package-lock.json b/package-lock.json index 79f6228a2..6cd2c8d8a 100644 --- a/package-lock.json +++ b/package-lock.json @@ -1,12 +1,12 @@ { "name": "name-request", - "version": "5.2.13", + "version": "5.2.14", "lockfileVersion": 3, "requires": true, "packages": { "": { "name": "name-request", - "version": "5.2.13", + "version": "5.2.14", "dependencies": { "@babel/compat-data": "^7.21.5", "@bcrs-shared-components/breadcrumb": "2.1.24", diff --git a/package.json b/package.json index dade3ee48..5abe15911 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "name-request", - "version": "5.2.13", + "version": "5.2.14", "private": true, "appName": "Name Request UI", "sbcName": "SBC Common Components", diff --git a/src/components/new-request/search-components/business-lookup-fetch.vue b/src/components/new-request/search-components/business-lookup-fetch.vue index 0f70f4940..cbdee6e0a 100644 --- a/src/components/new-request/search-components/business-lookup-fetch.vue +++ b/src/components/new-request/search-components/business-lookup-fetch.vue @@ -62,7 +62,7 @@ export default class BusinessLookupFetch extends Mixins(CommonMixin, SearchMixin if (this.isConversion) { return this.isAlterable || 'This business cannot alter their business type' } else if (this.isRestoration) { - return this.isRestorable || 'This business cannot be restored' + return this.isRestorable || 'This business cannot be reactivated' } else if (this.isChangeName) { return this.isNameChangeable || 'This business cannot change their business name' } diff --git a/src/mixins/search-mixin.ts b/src/mixins/search-mixin.ts index 00e926100..c59e0672d 100644 --- a/src/mixins/search-mixin.ts +++ b/src/mixins/search-mixin.ts @@ -158,7 +158,8 @@ export class SearchMixin extends Mixins(CommonMixin) { } get isChangeNameXpro (): boolean { - return XproMapping.CHG.includes(this.getSearchBusiness?.legalType) + const corpType = this.getSearchBusiness?.legalType as unknown as CorpTypeCd + return XproMapping.CHG.includes(this.corpTypeToEntityType(corpType)) } /** Whether company can change name. */ @@ -172,7 +173,8 @@ export class SearchMixin extends Mixins(CommonMixin) { /** Whether the selected XPRO is restorable. */ get isSelectedXproAndRestorable (): boolean { - return XproMapping.REH.includes(this.getSearchBusiness?.legalType) + const corpType = this.getSearchBusiness?.legalType as unknown as CorpTypeCd + return XproMapping.REH.includes(this.corpTypeToEntityType(corpType)) } /** Whether the selected business' legal type is BC and restorable. */