From 1cad02f97c09316da9a02c42ecc5f87d0ec26e1e Mon Sep 17 00:00:00 2001 From: Nick Krantz Date: Thu, 31 Oct 2024 19:46:42 -0500 Subject: [PATCH] import account service in storybook --- libs/vault/src/cipher-form/cipher-form.stories.ts | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/libs/vault/src/cipher-form/cipher-form.stories.ts b/libs/vault/src/cipher-form/cipher-form.stories.ts index 13f233f53d1f..e48cf384c2ca 100644 --- a/libs/vault/src/cipher-form/cipher-form.stories.ts +++ b/libs/vault/src/cipher-form/cipher-form.stories.ts @@ -13,6 +13,7 @@ import { CollectionView } from "@bitwarden/admin-console/common"; import { AuditService } from "@bitwarden/common/abstractions/audit.service"; import { EventCollectionService } from "@bitwarden/common/abstractions/event/event-collection.service"; import { Organization } from "@bitwarden/common/admin-console/models/domain/organization"; +import { AccountService } from "@bitwarden/common/auth/abstractions/account.service"; import { AutofillSettingsServiceAbstraction } from "@bitwarden/common/autofill/services/autofill-settings.service"; import { DomainSettingsService } from "@bitwarden/common/autofill/services/domain-settings.service"; import { ClientType } from "@bitwarden/common/enums"; @@ -183,6 +184,12 @@ export default { getClientType: () => ClientType.Browser, }, }, + { + provide: AccountService, + useValue: { + activeAccount$: new BehaviorSubject({ email: "test@example.com" }), + }, + }, ], }), componentWrapperDecorator(