Skip to content

Commit

Permalink
feat: digital credentials gate (#595)
Browse files Browse the repository at this point in the history
* feat: gate digital credentials from API

Signed-off-by: Akiff Manji <[email protected]>

* chore: bump package version

Signed-off-by: Akiff Manji <[email protected]>

---------

Signed-off-by: Akiff Manji <[email protected]>
  • Loading branch information
amanji authored Nov 29, 2023
1 parent eaf2445 commit 5d74494
Show file tree
Hide file tree
Showing 4 changed files with 6 additions and 6 deletions.
4 changes: 2 additions & 2 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -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",
Expand Down
1 change: 1 addition & 0 deletions src/interfaces/business-state-interfaces.ts
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,7 @@ export interface FilingTypeIF {
}

export interface AllowedActionsIF {
digitalBusinessCard: boolean
filing: {
filingSubmissionLink: string
filingTypes: Array<FilingTypeIF>
Expand Down
5 changes: 2 additions & 3 deletions src/mixins/allowable-actions-mixin.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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: {
Expand Down

0 comments on commit 5d74494

Please sign in to comment.