})
export class VideoMiniatureMarkupComponent implements OnInit {
@Input() uuid: string
+ @Input() onlyDisplayTitle: boolean
video: Video
}
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)
}