Skip to content

Commit

Permalink
add option to make button block/inline (#10197)
Browse files Browse the repository at this point in the history
  • Loading branch information
rr-bw authored Jul 31, 2024
1 parent 17e0dff commit 27fa762
Show file tree
Hide file tree
Showing 3 changed files with 11 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -70,7 +70,7 @@
bitButton
bitFormButton
buttonType="primary"
[block]="true"
[block]="btnBlock"
[loading]="loading"
>
{{ buttonText || ("setMasterPassword" | i18n) }}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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>
`,
}),
};

0 comments on commit 27fa762

Please sign in to comment.