diff options
author | Rigel Kent <sendmemail@rigelk.eu> | 2020-07-01 02:08:58 +0200 |
---|---|---|
committer | Rigel Kent <par@rigelk.eu> | 2020-07-01 17:03:48 +0200 |
commit | 1fe1e14cb30ac44299563f98ed0aee2805794493 (patch) | |
tree | ce7066676a6aea5c022094bda4cc4068bd5f6fcf /client/src/app/shared/shared-main/buttons/button.component.ts | |
parent | c41c0e28ed444fdb427f9803d2f123ba6f535fb9 (diff) | |
download | PeerTube-1fe1e14cb30ac44299563f98ed0aee2805794493.tar.gz PeerTube-1fe1e14cb30ac44299563f98ed0aee2805794493.tar.zst PeerTube-1fe1e14cb30ac44299563f98ed0aee2805794493.zip |
fix video update button, add color to danger zone
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 | } |