]> git.immae.eu Git - github/Chocobozzz/PeerTube.git/blobdiff - client/src/app/shared/shared-main/buttons/button.component.ts
Display user quota progress bars above upload form (#2981)
[github/Chocobozzz/PeerTube.git] / client / src / app / shared / shared-main / buttons / button.component.ts
index e23b909458808e9777a04d3356a4b1799069ae46..1d2be0bf92060c6d398f542e59accb4362a63ceb 100644 (file)
@@ -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
+    }
+  }
 }