1
0
mirror of https://github.com/bitwarden/browser synced 2025-12-18 09:13:33 +00:00

[PM-7896] Cipher Form - Additional Options section (#9928)

* [PM-7896] Adjust cipher form container to expose config and original cipher view for children

* [PM-7896] Add initial additional options section

* [PM-7896] Add tests

* [PM-7896] Add TODO comments for Custom Fields

* [PM-7896] Hide password reprompt checkbox when unavailable

* [PM-7896] Fix storybook
This commit is contained in:
Shane Melton
2024-07-11 15:01:24 -07:00
committed by GitHub
parent 050f8f4bdc
commit 9dda29fb9c
8 changed files with 235 additions and 11 deletions

View File

@@ -7,6 +7,7 @@ import {
moduleMetadata,
StoryObj,
} from "@storybook/angular";
import { BehaviorSubject } from "rxjs";
import { Organization } from "@bitwarden/common/admin-console/models/domain/organization";
import { CipherType } from "@bitwarden/common/vault/enums";
@@ -15,7 +16,7 @@ import { CipherView } from "@bitwarden/common/vault/models/view/cipher.view";
import { CollectionView } from "@bitwarden/common/vault/models/view/collection.view";
import { FolderView } from "@bitwarden/common/vault/models/view/folder.view";
import { AsyncActionsModule, ButtonModule, ToastService } from "@bitwarden/components";
import { CipherFormConfig } from "@bitwarden/vault";
import { CipherFormConfig, PasswordRepromptService } from "@bitwarden/vault";
import { PreloadedEnglishI18nModule } from "@bitwarden/web-vault/src/app/core/tests";
import { CipherFormService } from "./abstractions/cipher-form.service";
@@ -71,6 +72,7 @@ const defaultConfig: CipherFormConfig = {
folderId: "folder2",
collectionIds: ["col1"],
favorite: false,
notes: "Example notes",
} as unknown as Cipher,
};
@@ -105,6 +107,12 @@ export default {
showToast: action("showToast"),
},
},
{
provide: PasswordRepromptService,
useValue: {
enabled$: new BehaviorSubject(true),
},
},
],
}),
componentWrapperDecorator(