diff options
Diffstat (limited to 'client/src/app/shared/shared-custom-markup/peertube-custom-tags/button-markup.component.ts')
-rw-r--r-- | client/src/app/shared/shared-custom-markup/peertube-custom-tags/button-markup.component.ts | 4 |
1 files changed, 3 insertions, 1 deletions
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 @@ | |||
1 | import { Component, Input } from '@angular/core' | 1 | import { Component, Input } from '@angular/core' |
2 | import { VideoChannel } from '../../shared-main' | 2 | import { VideoChannel } from '../../shared-main' |
3 | import { CustomMarkupComponent } from './shared' | ||
3 | 4 | ||
4 | /* | 5 | /* |
5 | * Markup component that creates a button | 6 | * Markup component that creates a button |
@@ -10,13 +11,14 @@ import { VideoChannel } from '../../shared-main' | |||
10 | templateUrl: 'button-markup.component.html', | 11 | templateUrl: 'button-markup.component.html', |
11 | styleUrls: [ 'button-markup.component.scss' ] | 12 | styleUrls: [ 'button-markup.component.scss' ] |
12 | }) | 13 | }) |
13 | export class ButtonMarkupComponent { | 14 | export class ButtonMarkupComponent implements CustomMarkupComponent { |
14 | @Input() theme: 'primary' | 'secondary' | 15 | @Input() theme: 'primary' | 'secondary' |
15 | @Input() href: string | 16 | @Input() href: string |
16 | @Input() label: string | 17 | @Input() label: string |
17 | @Input() blankTarget?: boolean | 18 | @Input() blankTarget?: boolean |
18 | 19 | ||
19 | channel: VideoChannel | 20 | channel: VideoChannel |
21 | loaded: undefined | ||
20 | 22 | ||
21 | getTarget () { | 23 | getTarget () { |
22 | if (this.blankTarget === true) return '_blank' | 24 | if (this.blankTarget === true) return '_blank' |