]> git.immae.eu Git - github/Chocobozzz/PeerTube.git/blob - client/src/app/shared/shared-custom-markup/playlist-miniature-markup.component.ts
Add help to custom markdown textarea
[github/Chocobozzz/PeerTube.git] / client / src / app / shared / shared-custom-markup / playlist-miniature-markup.component.ts
1 import { Component, Input, OnInit } from '@angular/core'
2 import { MiniatureDisplayOptions } from '../shared-video-miniature'
3 import { VideoPlaylist, VideoPlaylistService } from '../shared-video-playlist'
4
5 /*
6 * Markup component that creates a playlist miniature only
7 */
8
9 @Component({
10 selector: 'my-playlist-miniature-markup',
11 templateUrl: 'playlist-miniature-markup.component.html',
12 styleUrls: [ 'playlist-miniature-markup.component.scss' ]
13 })
14 export class PlaylistMiniatureMarkupComponent implements OnInit {
15 @Input() uuid: string
16
17 playlist: VideoPlaylist
18
19 displayOptions: MiniatureDisplayOptions = {
20 date: true,
21 views: true,
22 by: true,
23 avatar: false,
24 privacyLabel: false,
25 privacyText: false,
26 state: false,
27 blacklistInfo: false
28 }
29
30 constructor (
31 private playlistService: VideoPlaylistService
32 ) { }
33
34 ngOnInit () {
35 this.playlistService.getVideoPlaylist(this.uuid)
36 .subscribe(playlist => this.playlist = playlist)
37 }
38 }