X-Git-Url: https://git.librecmc.org/?a=blobdiff_plain;f=client%2Fsrc%2Fapp%2Fshared%2Fbuttons%2Fbutton.component.ts;h=cac5ad210ff9d6a609db9fba01feb5965861f2cb;hb=b5f919ac8eb2a1c20e26582fdfd377d687710d8f;hp=1a1162f0901aa87cfb3cb75ced66464d235b3aa6;hpb=6d8c8ea73a774c3568e6d28a4cbebcf7979d5c2a;p=oweals%2Fpeertube.git diff --git a/client/src/app/shared/buttons/button.component.ts b/client/src/app/shared/buttons/button.component.ts index 1a1162f09..cac5ad210 100644 --- a/client/src/app/shared/buttons/button.component.ts +++ b/client/src/app/shared/buttons/button.component.ts @@ -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