WIP plugins: update plugin
[oweals/peertube.git] / client / src / app / shared / buttons / button.component.ts
index 1a1162f0901aa87cfb3cb75ced66464d235b3aa6..cac5ad210ff9d6a609db9fba01feb5965861f2cb 100644 (file)
@@ -1,4 +1,5 @@
 import { Component, Input } from '@angular/core'
+import { GlobalIconName } from '@app/shared/images/global-icon.component'
 
 @Component({
   selector: 'my-button',
@@ -8,9 +9,10 @@ import { Component, Input } from '@angular/core'
 
 export class ButtonComponent {
   @Input() label = ''
-  @Input() className: string = undefined
-  @Input() icon: string = undefined
+  @Input() className = 'grey-button'
+  @Input() icon: GlobalIconName = undefined
   @Input() title: string = undefined
+  @Input() loading = false
 
   getTitle () {
     return this.title || this.label