mirror of
https://github.com/bitwarden/browser
synced 2025-12-17 00:33:44 +00:00
[CL-54] Add support for button block without argument + submit button (#3498)
This commit is contained in:
@@ -1,4 +1,4 @@
|
||||
import { Component, Input } from "@angular/core";
|
||||
import { Component, HostBinding, Input } from "@angular/core";
|
||||
|
||||
import { ButtonTypes } from "../button";
|
||||
|
||||
@@ -10,4 +10,10 @@ export class SubmitButtonComponent {
|
||||
@Input() buttonType: ButtonTypes = "primary";
|
||||
@Input() disabled = false;
|
||||
@Input() loading: boolean;
|
||||
|
||||
@Input() block?: boolean;
|
||||
|
||||
@HostBinding("class") get classList() {
|
||||
return this.block == null || this.block === false ? [] : ["tw-w-full", "tw-block"];
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user