aboutsummaryrefslogtreecommitdiffhomepage
path: root/client/src/app/+admin
diff options
context:
space:
mode:
authorChocobozzz <me@florianbigard.com>2021-11-02 11:00:40 +0100
committerChocobozzz <me@florianbigard.com>2021-11-02 11:13:13 +0100
commit7e7d8e485356402e7652c61c9f004e850b0a1607 (patch)
tree71c498c886cfd4b623a3c208572dc656ed800443 /client/src/app/+admin
parentfd5fa94bbc808e3ebb7a2e6bca636f2607566b52 (diff)
downloadPeerTube-7e7d8e485356402e7652c61c9f004e850b0a1607.tar.gz
PeerTube-7e7d8e485356402e7652c61c9f004e850b0a1607.tar.zst
PeerTube-7e7d8e485356402e7652c61c9f004e850b0a1607.zip
Some fixes for admin videos list
Diffstat (limited to 'client/src/app/+admin')
-rw-r--r--client/src/app/+admin/overview/videos/video-list.component.html5
-rw-r--r--client/src/app/+admin/overview/videos/video-list.component.ts4
2 files changed, 5 insertions, 4 deletions
diff --git a/client/src/app/+admin/overview/videos/video-list.component.html b/client/src/app/+admin/overview/videos/video-list.component.html
index eedf6f3dc..dd4ab178e 100644
--- a/client/src/app/+admin/overview/videos/video-list.component.html
+++ b/client/src/app/+admin/overview/videos/video-list.component.html
@@ -69,7 +69,7 @@
69 69
70 <span *ngIf="video.nsfw" class="badge badge-red" i18n>NSFW</span> 70 <span *ngIf="video.nsfw" class="badge badge-red" i18n>NSFW</span>
71 71
72 <span *ngIf="isUnpublished(video.state.id)" class="badge badge-yellow" i18n>Not published yet</span> 72 <span *ngIf="isUnpublished(video.state.id)" class="badge badge-yellow" i18n>{{ video.state.label }}</span>
73 73
74 <span *ngIf="isAccountBlocked(video)" class="badge badge-red" i18n>Account muted</span> 74 <span *ngIf="isAccountBlocked(video)" class="badge badge-red" i18n>Account muted</span>
75 <span *ngIf="isServerBlocked(video)" class="badge badge-red" i18n>Server muted</span> 75 <span *ngIf="isServerBlocked(video)" class="badge badge-red" i18n>Server muted</span>
@@ -80,8 +80,9 @@
80 <td> 80 <td>
81 <span *ngIf="isHLS(video)" class="badge badge-blue">HLS</span> 81 <span *ngIf="isHLS(video)" class="badge badge-blue">HLS</span>
82 <span *ngIf="isWebTorrent(video)" class="badge badge-blue">WebTorrent</span> 82 <span *ngIf="isWebTorrent(video)" class="badge badge-blue">WebTorrent</span>
83 <span *ngIf="video.isLive" class="badge badge-blue">Live</span>
83 84
84 <span *ngIf="!video.remote">{{ getFilesSize(video) | bytes: 1 }}</span> 85 <span *ngIf="!video.isLive && video.isLocal">{{ getFilesSize(video) | bytes: 1 }}</span>
85 </td> 86 </td>
86 87
87 <td> 88 <td>
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 6885abfc7..8bd171c53 100644
--- a/client/src/app/+admin/overview/videos/video-list.component.ts
+++ b/client/src/app/+admin/overview/videos/video-list.component.ts
@@ -16,7 +16,7 @@ export class VideoListComponent extends RestTable implements OnInit {
16 videos: Video[] = [] 16 videos: Video[] = []
17 17
18 totalRecords = 0 18 totalRecords = 0
19 sort: SortMeta = { field: 'publishedAt', order: 1 } 19 sort: SortMeta = { field: 'publishedAt', order: -1 }
20 pagination: RestPagination = { count: this.rowsPerPage, start: 0 } 20 pagination: RestPagination = { count: this.rowsPerPage, start: 0 }
21 21
22 bulkVideoActions: DropdownAction<Video[]>[][] = [] 22 bulkVideoActions: DropdownAction<Video[]>[][] = []
@@ -99,7 +99,7 @@ export class VideoListComponent extends RestTable implements OnInit {
99 } 99 }
100 100
101 isUnpublished (state: VideoState) { 101 isUnpublished (state: VideoState) {
102 return state !== VideoState.PUBLISHED 102 return state !== VideoState.LIVE_ENDED && state !== VideoState.PUBLISHED
103 } 103 }
104 104
105 isAccountBlocked (video: Video) { 105 isAccountBlocked (video: Video) {