From f8c7a6a2862a30fff284e0952cca4a4dad9751cf Mon Sep 17 00:00:00 2001 From: Akiff Manji Date: Wed, 29 Nov 2023 19:32:55 +0000 Subject: [PATCH 1/2] feat: gate digital credentials from API Signed-off-by: Akiff Manji --- src/interfaces/business-state-interfaces.ts | 1 + src/mixins/allowable-actions-mixin.ts | 5 ++--- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/src/interfaces/business-state-interfaces.ts b/src/interfaces/business-state-interfaces.ts index 11de06177..7b56e15bd 100644 --- a/src/interfaces/business-state-interfaces.ts +++ b/src/interfaces/business-state-interfaces.ts @@ -9,6 +9,7 @@ export interface FilingTypeIF { } export interface AllowedActionsIF { + digitalBusinessCard: boolean filing: { filingSubmissionLink: string filingTypes: Array diff --git a/src/mixins/allowable-actions-mixin.ts b/src/mixins/allowable-actions-mixin.ts index 13d2d2eaa..62a2131c5 100644 --- a/src/mixins/allowable-actions-mixin.ts +++ b/src/mixins/allowable-actions-mixin.ts @@ -98,9 +98,8 @@ export default class AllowableActionsMixin extends Vue { case AllowableActions.DIGITAL_CREDENTIALS: { // NB: this feature is targeted via LaunchDarkly const ff = !!GetFeatureFlag('enable-digital-credentials') - const { loginSource } = this.getUserInfo - const isLoginSourceBCSC = loginSource === LoginSource.BCSC - return (ff && isLoginSourceBCSC && this.isSoleProp && !this.isRoleStaff) + const isDigitalBusinessCardAllowed = this.getAllowedActions?.digitalBusinessCard + return ff && isDigitalBusinessCardAllowed } case AllowableActions.DIRECTOR_CHANGE: { From 530d9bafb6de540fa7076f44ecdf92d689bcb66c Mon Sep 17 00:00:00 2001 From: Akiff Manji Date: Wed, 29 Nov 2023 21:15:31 +0000 Subject: [PATCH 2/2] chore: bump package version Signed-off-by: Akiff Manji --- package-lock.json | 4 ++-- package.json | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/package-lock.json b/package-lock.json index 7d62c6946..b84f40bc5 100644 --- a/package-lock.json +++ b/package-lock.json @@ -1,12 +1,12 @@ { "name": "business-filings-ui", - "version": "7.0.21", + "version": "7.0.22", "lockfileVersion": 3, "requires": true, "packages": { "": { "name": "business-filings-ui", - "version": "7.0.21", + "version": "7.0.22", "dependencies": { "@babel/compat-data": "^7.21.5", "@bcrs-shared-components/base-address": "2.0.9", diff --git a/package.json b/package.json index 408809e6b..349b4fd92 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "business-filings-ui", - "version": "7.0.21", + "version": "7.0.22", "private": true, "appName": "Filings UI", "sbcName": "SBC Common Components",