From db66f3914bad31a21df5d7ffb3452b80655d6794 Mon Sep 17 00:00:00 2001 From: Chocobozzz Date: Fri, 10 Jun 2022 10:46:20 +0200 Subject: Refactor button components --- client/src/app/shared/shared-main/buttons/button.component.ts | 2 ++ 1 file changed, 2 insertions(+) (limited to 'client/src/app/shared/shared-main/buttons/button.component.ts') diff --git a/client/src/app/shared/shared-main/buttons/button.component.ts b/client/src/app/shared/shared-main/buttons/button.component.ts index 52936a4d4..476057823 100644 --- a/client/src/app/shared/shared-main/buttons/button.component.ts +++ b/client/src/app/shared/shared-main/buttons/button.component.ts @@ -11,6 +11,7 @@ export class ButtonComponent { @Input() label = '' @Input() className = 'grey-button' @Input() icon: GlobalIconName = undefined + @Input() routerLink: string[] | string @Input() title: string = undefined @Input() loading = false @Input() disabled = false @@ -21,6 +22,7 @@ export class ButtonComponent { [this.className]: true, disabled: this.disabled, 'icon-only': !this.label, + 'has-icon': !!this.icon, 'responsive-label': this.responsiveLabel } } -- cgit v1.2.3