From 1fe1e14cb30ac44299563f98ed0aee2805794493 Mon Sep 17 00:00:00 2001 From: Rigel Kent Date: Wed, 1 Jul 2020 02:08:58 +0200 Subject: fix video update button, add color to danger zone --- client/src/app/shared/shared-main/buttons/button.component.ts | 8 ++++++++ 1 file changed, 8 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 e23b90945..1d2be0bf9 100644 --- a/client/src/app/shared/shared-main/buttons/button.component.ts +++ b/client/src/app/shared/shared-main/buttons/button.component.ts @@ -13,8 +13,16 @@ export class ButtonComponent { @Input() icon: GlobalIconName = undefined @Input() title: string = undefined @Input() loading = false + @Input() disabled = false getTitle () { return this.title || this.label } + + getClasses () { + return { + [this.className]: true, + disabled: this.disabled + } + } } -- cgit v1.2.3