aboutsummaryrefslogtreecommitdiffhomepage
path: root/client/src/app/+admin/overview/videos/video-list.component.ts
diff options
context:
space:
mode:
Diffstat (limited to 'client/src/app/+admin/overview/videos/video-list.component.ts')
-rw-r--r--client/src/app/+admin/overview/videos/video-list.component.ts12
1 files changed, 8 insertions, 4 deletions
diff --git a/client/src/app/+admin/overview/videos/video-list.component.ts b/client/src/app/+admin/overview/videos/video-list.component.ts
index 8a15e8426..635552cf5 100644
--- a/client/src/app/+admin/overview/videos/video-list.component.ts
+++ b/client/src/app/+admin/overview/videos/video-list.component.ts
@@ -85,14 +85,14 @@ export class VideoListComponent extends RestTable implements OnInit {
85 this.reloadData() 85 this.reloadData()
86 } 86 }
87 87
88 getPrivacyBadgeClass (privacy: VideoPrivacy) { 88 getPrivacyBadgeClass (video: Video) {
89 if (privacy === VideoPrivacy.PUBLIC) return 'badge-blue' 89 if (video.privacy.id === VideoPrivacy.PUBLIC) return 'badge-blue'
90 90
91 return 'badge-yellow' 91 return 'badge-yellow'
92 } 92 }
93 93
94 isUnpublished (state: VideoState) { 94 isUnpublished (video: Video) {
95 return state !== VideoState.LIVE_ENDED && state !== VideoState.PUBLISHED 95 return video.state.id !== VideoState.LIVE_ENDED && video.state.id !== VideoState.PUBLISHED
96 } 96 }
97 97
98 isAccountBlocked (video: Video) { 98 isAccountBlocked (video: Video) {
@@ -107,6 +107,10 @@ export class VideoListComponent extends RestTable implements OnInit {
107 return video.blacklisted 107 return video.blacklisted
108 } 108 }
109 109
110 isImport (video: Video) {
111 return video.state.id === VideoState.TO_IMPORT
112 }
113
110 isHLS (video: Video) { 114 isHLS (video: Video) {
111 const p = video.streamingPlaylists.find(p => p.type === VideoStreamingPlaylistType.HLS) 115 const p = video.streamingPlaylists.find(p => p.type === VideoStreamingPlaylistType.HLS)
112 if (!p) return false 116 if (!p) return false