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:
parent
17e0dff342
commit
27fa7625cf
@ -70,7 +70,7 @@
|
||||
bitButton
|
||||
bitFormButton
|
||||
buttonType="primary"
|
||||
[block]="true"
|
||||
[block]="btnBlock"
|
||||
[loading]="loading"
|
||||
>
|
||||
{{ buttonText || ("setMasterPassword" | i18n) }}
|
||||
|
@ -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;
|
||||
|
@ -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>
|
||||
`,
|
||||
}),
|
||||
};
|
||||
|
Loading…
Reference in New Issue
Block a user