1
0
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:
Oscar Hinton
2022-09-16 11:30:41 +02:00
committed by GitHub
parent 0783bb2f7d
commit 868f12bfd8
5 changed files with 39 additions and 9 deletions

View File

@@ -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"];
}
}