From fd440fea786f2e86440ae4712af0a71411b7fd61 Mon Sep 17 00:00:00 2001 From: Karim El Jazzar <122301442+JazzarKarim@users.noreply.github.com> Date: Mon, 11 Sep 2023 14:00:21 -0700 Subject: [PATCH] Don't show any buttons when Federal Reinstatement is selected (#681) --- package-lock.json | 4 ++-- package.json | 2 +- src/components/new-request/search.vue | 4 ++++ 3 files changed, 7 insertions(+), 3 deletions(-) diff --git a/package-lock.json b/package-lock.json index f6481f79f..c734378e3 100644 --- a/package-lock.json +++ b/package-lock.json @@ -1,12 +1,12 @@ { "name": "name-request", - "version": "5.0.41", + "version": "5.0.42", "lockfileVersion": 2, "requires": true, "packages": { "": { "name": "name-request", - "version": "5.0.41", + "version": "5.0.42", "dependencies": { "@babel/compat-data": "^7.12.13", "@bcrs-shared-components/breadcrumb": "2.1.24", diff --git a/package.json b/package.json index 5a91eced1..d32de288a 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "name-request", - "version": "5.0.41", + "version": "5.0.42", "private": true, "appName": "Name Request UI", "sbcName": "SBC Common Components", diff --git a/src/components/new-request/search.vue b/src/components/new-request/search.vue index 77b50dba1..711fc9155 100644 --- a/src/components/new-request/search.vue +++ b/src/components/new-request/search.vue @@ -622,6 +622,9 @@ export default class Search extends Mixins(CommonMixin, NrAffiliationMixin) { } get showActionButton (): boolean { + // Since Federal Reinstatement is a paper filing, we don't show any buttons. + // The same conditional is in showColinButton(). + if (this.isFederal && this.isRestoration) return false if (this.isConversion && !this.isAlterOnline(this.getConversionType)) return false return true } @@ -629,6 +632,7 @@ export default class Search extends Mixins(CommonMixin, NrAffiliationMixin) { /** Whether to show "Go to COLIN" button (otherwise will show `actionNowButtonText` button). */ get showColinButton (): boolean { if (this.showContinueInButton) return true + if (this.isFederal && this.isRestoration) return false if (this.isFederal) return true // don't show COLIN button for supported alteration entities