Update a little bit user dropdown message
[oweals/peertube.git] / client / src / app / shared / video-playlist / video-playlist-miniature.component.ts
1 import { Component, Input } from '@angular/core'
2 import { VideoPlaylist } from '@app/shared/video-playlist/video-playlist.model'
3
4 @Component({
5   selector: 'my-video-playlist-miniature',
6   styleUrls: [ './video-playlist-miniature.component.scss' ],
7   templateUrl: './video-playlist-miniature.component.html'
8 })
9 export class VideoPlaylistMiniatureComponent {
10   @Input() playlist: VideoPlaylist
11   @Input() toManage = false
12   @Input() displayChannel = false
13   @Input() displayDescription = false
14   @Input() displayPrivacy = false
15
16   getPlaylistUrl () {
17     if (this.toManage) return [ '/my-account/video-playlists', this.playlist.uuid ]
18     if (this.playlist.videosLength === 0) return null
19
20     return [ '/videos/watch/playlist', this.playlist.uuid ]
21   }
22 }