mirror of
https://github.com/bitwarden/browser
synced 2026-02-20 19:34:03 +00:00
[PM-18721] update Stories and enum comment
This commit is contained in:
@@ -75,6 +75,9 @@ export enum InputPasswordFlow {
|
||||
* - Emergency Access Takeover
|
||||
* - Account Recovery
|
||||
*
|
||||
* Since both of those processes use a dialog, the `InputPasswordComponent` will not display
|
||||
* buttons for `ChangePasswordDelegation` because the dialog will have its own buttons.
|
||||
*
|
||||
* Form Fields: `[newPassword, newPasswordConfirm]`
|
||||
*
|
||||
* Note: this flow does not involve an active account `email`
|
||||
|
||||
@@ -156,15 +156,6 @@ export default {
|
||||
|
||||
type Story = StoryObj<InputPasswordComponent>;
|
||||
|
||||
export const ChangePasswordDelegation: Story = {
|
||||
render: (args) => ({
|
||||
props: args,
|
||||
template: `
|
||||
<auth-input-password [flow]="InputPasswordFlow.ChangePasswordDelegation"></auth-input-password>
|
||||
`,
|
||||
}),
|
||||
};
|
||||
|
||||
export const SetInitialPasswordAccountRegistration: Story = {
|
||||
render: (args) => ({
|
||||
props: args,
|
||||
@@ -216,14 +207,24 @@ export const ChangePasswordWithOptionalUserKeyRotation: Story = {
|
||||
}),
|
||||
};
|
||||
|
||||
export const ChangePasswordDelegation: Story = {
|
||||
render: (args) => ({
|
||||
props: args,
|
||||
template: `
|
||||
<auth-input-password [flow]="InputPasswordFlow.ChangePasswordDelegation"></auth-input-password>
|
||||
<br />
|
||||
<div>Note: no buttons here as this flow is expected to be used in a dialog, which will have its own buttons</div>
|
||||
`,
|
||||
}),
|
||||
};
|
||||
|
||||
export const WithPolicies: Story = {
|
||||
render: (args) => ({
|
||||
props: args,
|
||||
template: `
|
||||
<auth-input-password
|
||||
[flow]="InputPasswordFlow.SetInitialPasswordAuthedUser"
|
||||
[flow]="InputPasswordFlow.SetInitialPasswordAccountRegistration"
|
||||
[email]="email"
|
||||
[userId]="userId"
|
||||
[masterPasswordPolicyOptions]="masterPasswordPolicyOptions"
|
||||
></auth-input-password>
|
||||
`,
|
||||
|
||||
Reference in New Issue
Block a user