1
0
mirror of https://github.com/bitwarden/browser.git synced 2024-11-11 10:10:25 +01:00

add option to make button block/inline (#10197)

This commit is contained in:
rr-bw 2024-07-30 21:27:00 -05:00 committed by GitHub
parent 17e0dff342
commit 27fa7625cf
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
3 changed files with 11 additions and 1 deletions

View File

@ -70,7 +70,7 @@
bitButton
bitFormButton
buttonType="primary"
[block]="true"
[block]="btnBlock"
[loading]="loading"
>
{{ buttonText || ("setMasterPassword" | i18n) }}

View File

@ -56,6 +56,7 @@ export class InputPasswordComponent {
@Input() buttonText: string;
@Input() masterPasswordPolicyOptions: MasterPasswordPolicyOptions | null = null;
@Input() loading: boolean = false;
@Input() btnBlock: boolean = true;
private minHintLength = 0;
protected maxHintLength = 50;

View File

@ -113,3 +113,12 @@ export const WithPolicy: Story = {
`,
}),
};
export const InlineButton: Story = {
render: (args) => ({
props: args,
template: `
<auth-input-password [btnBlock]="false" [masterPasswordPolicyOptions]="masterPasswordPolicyOptions"></auth-input-password>
`,
}),
};