mirror of
https://github.com/bitwarden/browser.git
synced 2024-11-22 11:45:59 +01:00
add option to make button block/inline (#10197)
This commit is contained in:
parent
17e0dff342
commit
27fa7625cf
@ -70,7 +70,7 @@
|
|||||||
bitButton
|
bitButton
|
||||||
bitFormButton
|
bitFormButton
|
||||||
buttonType="primary"
|
buttonType="primary"
|
||||||
[block]="true"
|
[block]="btnBlock"
|
||||||
[loading]="loading"
|
[loading]="loading"
|
||||||
>
|
>
|
||||||
{{ buttonText || ("setMasterPassword" | i18n) }}
|
{{ buttonText || ("setMasterPassword" | i18n) }}
|
||||||
|
@ -56,6 +56,7 @@ export class InputPasswordComponent {
|
|||||||
@Input() buttonText: string;
|
@Input() buttonText: string;
|
||||||
@Input() masterPasswordPolicyOptions: MasterPasswordPolicyOptions | null = null;
|
@Input() masterPasswordPolicyOptions: MasterPasswordPolicyOptions | null = null;
|
||||||
@Input() loading: boolean = false;
|
@Input() loading: boolean = false;
|
||||||
|
@Input() btnBlock: boolean = true;
|
||||||
|
|
||||||
private minHintLength = 0;
|
private minHintLength = 0;
|
||||||
protected maxHintLength = 50;
|
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