]> git.immae.eu Git - github/Chocobozzz/PeerTube.git/blobdiff - client/src/app/shared/shared-custom-markup/peertube-custom-tags/video-miniature-markup.component.ts
Improve channel card custom markup
[github/Chocobozzz/PeerTube.git] / client / src / app / shared / shared-custom-markup / peertube-custom-tags / video-miniature-markup.component.ts
index c833c56c7b9c5115771862b3bec857890fce283f..dfb4c497f12e4cb8a0ba3bdb7026da7d0fac6179 100644 (file)
@@ -14,6 +14,7 @@ import { MiniatureDisplayOptions } from '../../shared-video-miniature'
 })
 export class VideoMiniatureMarkupComponent implements OnInit {
   @Input() uuid: string
+  @Input() onlyDisplayTitle: boolean
 
   video: Video
 
@@ -38,6 +39,12 @@ export class VideoMiniatureMarkupComponent implements OnInit {
   }
 
   ngOnInit () {
+    if (this.onlyDisplayTitle) {
+      for (const key of Object.keys(this.displayOptions)) {
+        this.displayOptions[key] = false
+      }
+    }
+
     this.videoService.getVideo({ videoId: this.uuid })
       .subscribe(video => this.video = video)
   }