aboutsummaryrefslogtreecommitdiffhomepage
path: root/client/src/app/shared/shared-custom-markup/peertube-custom-tags/video-miniature-markup.component.ts
diff options
context:
space:
mode:
Diffstat (limited to 'client/src/app/shared/shared-custom-markup/peertube-custom-tags/video-miniature-markup.component.ts')
-rw-r--r--client/src/app/shared/shared-custom-markup/peertube-custom-tags/video-miniature-markup.component.ts7
1 files changed, 7 insertions, 0 deletions
diff --git a/client/src/app/shared/shared-custom-markup/peertube-custom-tags/video-miniature-markup.component.ts b/client/src/app/shared/shared-custom-markup/peertube-custom-tags/video-miniature-markup.component.ts
index c833c56c7..dfb4c497f 100644
--- a/client/src/app/shared/shared-custom-markup/peertube-custom-tags/video-miniature-markup.component.ts
+++ b/client/src/app/shared/shared-custom-markup/peertube-custom-tags/video-miniature-markup.component.ts
@@ -14,6 +14,7 @@ import { MiniatureDisplayOptions } from '../../shared-video-miniature'
14}) 14})
15export class VideoMiniatureMarkupComponent implements OnInit { 15export class VideoMiniatureMarkupComponent implements OnInit {
16 @Input() uuid: string 16 @Input() uuid: string
17 @Input() onlyDisplayTitle: boolean
17 18
18 video: Video 19 video: Video
19 20
@@ -38,6 +39,12 @@ export class VideoMiniatureMarkupComponent implements OnInit {
38 } 39 }
39 40
40 ngOnInit () { 41 ngOnInit () {
42 if (this.onlyDisplayTitle) {
43 for (const key of Object.keys(this.displayOptions)) {
44 this.displayOptions[key] = false
45 }
46 }
47
41 this.videoService.getVideo({ videoId: this.uuid }) 48 this.videoService.getVideo({ videoId: this.uuid })
42 .subscribe(video => this.video = video) 49 .subscribe(video => this.video = video)
43 } 50 }