aboutsummaryrefslogtreecommitdiffhomepage
path: root/client/src/app/shared/shared-custom-markup/peertube-custom-tags/video-miniature-markup.component.ts
diff options
context:
space:
mode:
authorChocobozzz <me@florianbigard.com>2021-06-09 09:32:47 +0200
committerChocobozzz <me@florianbigard.com>2021-06-09 09:32:47 +0200
commit9105634f16e5dfc66df198f23dbfae77dff2d821 (patch)
treeb88b569f75b9312486b382633b1e6eef59bb5045 /client/src/app/shared/shared-custom-markup/peertube-custom-tags/video-miniature-markup.component.ts
parentf7894f09649b8ae4009d51790f1ac636c4fc4439 (diff)
downloadPeerTube-9105634f16e5dfc66df198f23dbfae77dff2d821.tar.gz
PeerTube-9105634f16e5dfc66df198f23dbfae77dff2d821.tar.zst
PeerTube-9105634f16e5dfc66df198f23dbfae77dff2d821.zip
Add more filters for video miniatures
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 }