From 9fec1a3208e1ae4669c529fd7750818376f42ef3 Mon Sep 17 00:00:00 2001 From: ketaki-deodhar <116035339+ketaki-deodhar@users.noreply.github.com> Date: Thu, 12 Dec 2024 10:48:20 -0800 Subject: [PATCH] 24205 - updates for name change and alteration (#784) * 24205 - updates for name change and alteration ff * 24205 - remove feature flags * 24205 - remove feature flags * 24205 - update version * 24205 - remove unsused import * 24205 - remove consitional chaining * 24205 - update funstions * 24205 * 24205 * 24205- update mounted() with async --- app/package.json | 2 +- .../existing-request/nr-approved-gray-box.vue | 14 ++++++-- .../business-lookup-fetch.vue | 5 +++ app/src/components/new-request/search.vue | 12 ++++--- app/src/interfaces/new-request-interface.ts | 1 + app/src/mixins/common-mixin.ts | 32 ++++++++++++------- app/src/mixins/search-mixin.ts | 3 +- app/src/plugins/featureFlags.ts | 2 -- app/src/services/business-services.ts | 15 ++++++++- app/src/store/actions.ts | 4 +++ app/src/store/getters.ts | 4 +++ app/src/store/mutations.ts | 4 +++ app/src/store/state.ts | 1 + 13 files changed, 74 insertions(+), 25 deletions(-) diff --git a/app/package.json b/app/package.json index fceeff41e..fcb437395 100644 --- a/app/package.json +++ b/app/package.json @@ -1,6 +1,6 @@ { "name": "name-request", - "version": "5.5.12", + "version": "5.5.13", "private": true, "appName": "Name Request UI", "sbcName": "SBC Common Components", diff --git a/app/src/components/existing-request/nr-approved-gray-box.vue b/app/src/components/existing-request/nr-approved-gray-box.vue index 92654833c..144c02b69 100644 --- a/app/src/components/existing-request/nr-approved-gray-box.vue +++ b/app/src/components/existing-request/nr-approved-gray-box.vue @@ -242,6 +242,15 @@ export default class NrApprovedGrayBox extends Mixins(CommonMixin) { @Prop({ default: false }) readonly disabled!: boolean @Getter getNr!: Partial + @Getter getIsLearBusiness!: boolean + + isBusinesCheckDone = false + + /** Called when component is mounted. */ + async mounted () { + // check if business is in Lear and set store value of isLearBusiness flag + await this.checkBusinessInLear(this.getNr?.corpNum) + } get isConversion (): boolean { return (this.getNr.request_action_cd === NrRequestActionCodes.CONVERSION) @@ -300,9 +309,9 @@ export default class NrApprovedGrayBox extends Mixins(CommonMixin) { get showOpenExternalIcon (): boolean { if (this.showAmalgamateNowButton && !this.isSupportedAmalgamation(this.getNr.entity_type_cd)) return true - if (this.showAlterNowButton && !this.isSupportedAlteration(this.getNr.requestTypeCd)) return true + if (this.showAlterNowButton && !this.getIsLearBusiness) return true if (this.showBeginContinuationButton && !this.isSupportedContinuationIn(this.getNr.entity_type_cd)) return true - if (this.showNameChangeButton && !this.isSupportedChangeName(this.getNr.entity_type_cd)) return true + if (this.showNameChangeButton && !this.getIsLearBusiness) return true return false } @@ -335,6 +344,7 @@ export default class NrApprovedGrayBox extends Mixins(CommonMixin) { ) } } +