diff --git a/package-lock.json b/package-lock.json index fe3e44a62..488c274a1 100644 --- a/package-lock.json +++ b/package-lock.json @@ -1,12 +1,12 @@ { "name": "name-request", - "version": "3.3.2", + "version": "3.3.3", "lockfileVersion": 2, "requires": true, "packages": { "": { "name": "name-request", - "version": "3.3.2", + "version": "3.3.3", "dependencies": { "@babel/compat-data": "^7.12.13", "@bcrs-shared-components/enums": "1.0.13", diff --git a/package.json b/package.json index 0b1af61be..0fe974b3c 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "name-request", - "version": "3.3.2", + "version": "3.3.3", "private": true, "appName": "Name Request UI", "sbcName": "SBC Common Components", diff --git a/src/components/existing-request/existing-request-display.vue b/src/components/existing-request/existing-request-display.vue index da9593812..46c4e6983 100644 --- a/src/components/existing-request/existing-request-display.vue +++ b/src/components/existing-request/existing-request-display.vue @@ -226,7 +226,7 @@ import NamesGrayBox from './names-gray-box.vue' import CheckStatusGrayBox from './check-status-gray-box.vue' import NrApprovedGrayBox from './nr-approved-gray-box.vue' import NrNotApprovedGrayBox from './nr-not-approved-gray-box.vue' -import { NameState, NrAction, NrState, PaymentStatus, SbcPaymentStatus, PaymentAction, Furnished } +import { NameState, NrAction, NrState, PaymentStatus, SbcPaymentStatus, PaymentAction, Furnished, RequestCode } from '@/enums' import { sleep, getFeatureFlag, navigate } from '@/plugins' import NamexServices from '@/services/namex.services' @@ -424,7 +424,18 @@ export default class ExistingRequestDisplay extends Mixins( /** True if the Register button should be shown. */ get showRegisterButton (): boolean { - return this.isFirm(this.nr) + return this.isFirm(this.nr) && + this.nr.request_action_cd && + this.nr.request_action_cd === RequestCode.NEW && + (NrState.APPROVED === this.nr.state || + this.isConsentUnRequired) + } + + get isConsentUnRequired (): boolean { + return NrState.CONDITIONAL === this.nr.state && + (this.nr.consentFlag === null || + this.nr.consentFlag === 'R' || + this.nr.consentFlag === 'N') } /** True if the Check Status gray box should be shown. */