diff options
Diffstat (limited to 'client/src/app/shared/shared-main/buttons/button.component.ts')
-rw-r--r-- | client/src/app/shared/shared-main/buttons/button.component.ts | 8 |
1 files changed, 8 insertions, 0 deletions
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 { | |||
13 | @Input() icon: GlobalIconName = undefined | 13 | @Input() icon: GlobalIconName = undefined |
14 | @Input() title: string = undefined | 14 | @Input() title: string = undefined |
15 | @Input() loading = false | 15 | @Input() loading = false |
16 | @Input() disabled = false | ||
16 | 17 | ||
17 | getTitle () { | 18 | getTitle () { |
18 | return this.title || this.label | 19 | return this.title || this.label |
19 | } | 20 | } |
21 | |||
22 | getClasses () { | ||
23 | return { | ||
24 | [this.className]: true, | ||
25 | disabled: this.disabled | ||
26 | } | ||
27 | } | ||
20 | } | 28 | } |