mirror of
https://github.com/bitwarden/browser
synced 2025-12-12 06:13:38 +00:00
add option to make button block/inline (#10197)
This commit is contained in:
@@ -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>
|
||||||
|
`,
|
||||||
|
}),
|
||||||
|
};
|
||||||
|
|||||||
Reference in New Issue
Block a user