X-Git-Url: https://git.immae.eu/?a=blobdiff_plain;f=client%2Fsrc%2Fapp%2Fshared%2Fshared-custom-markup%2Fpeertube-custom-tags%2Fbutton-markup.component.ts;h=1af060548540231ed0c0c4821bbac996de513af5;hb=0ca454e3bdf89390d1a48760ab555ddd8725c82d;hp=987b37d19eba63c0857d8f10142609f9378ef85c;hpb=8ee25e17b88b970703f4df9e74cb4726bbffd837;p=github%2FChocobozzz%2FPeerTube.git diff --git a/client/src/app/shared/shared-custom-markup/peertube-custom-tags/button-markup.component.ts b/client/src/app/shared/shared-custom-markup/peertube-custom-tags/button-markup.component.ts index 987b37d19..1af060548 100644 --- a/client/src/app/shared/shared-custom-markup/peertube-custom-tags/button-markup.component.ts +++ b/client/src/app/shared/shared-custom-markup/peertube-custom-tags/button-markup.component.ts @@ -1,5 +1,6 @@ import { Component, Input } from '@angular/core' import { VideoChannel } from '../../shared-main' +import { CustomMarkupComponent } from './shared' /* * Markup component that creates a button @@ -10,13 +11,14 @@ import { VideoChannel } from '../../shared-main' templateUrl: 'button-markup.component.html', styleUrls: [ 'button-markup.component.scss' ] }) -export class ButtonMarkupComponent { +export class ButtonMarkupComponent implements CustomMarkupComponent { @Input() theme: 'primary' | 'secondary' @Input() href: string @Input() label: string @Input() blankTarget?: boolean channel: VideoChannel + loaded: undefined getTarget () { if (this.blankTarget === true) return '_blank'