diff options
author | Chocobozzz <me@florianbigard.com> | 2021-11-03 11:32:41 +0100 |
---|---|---|
committer | Chocobozzz <me@florianbigard.com> | 2021-11-03 11:32:41 +0100 |
commit | d324756edb836672f12284cd18e642a658b273d8 (patch) | |
tree | 3b323682bd7380491ad904daaeaea10be606e0f9 /client/src/app/+admin/overview/videos/video-list.component.ts | |
parent | d5d9c5b79edf613e97a752a3d59062fb42045275 (diff) | |
download | PeerTube-d324756edb836672f12284cd18e642a658b273d8.tar.gz PeerTube-d324756edb836672f12284cd18e642a658b273d8.tar.zst PeerTube-d324756edb836672f12284cd18e642a658b273d8.zip |
Add ability to filter by file type
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.ts | 12 |
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 |