diff options
author | Chocobozzz <me@florianbigard.com> | 2022-08-10 11:51:13 +0200 |
---|---|---|
committer | Chocobozzz <me@florianbigard.com> | 2022-08-10 14:32:00 +0200 |
commit | a3b472a12ec6e57dbe2f650419f8064864686eab (patch) | |
tree | f36559488e34493c029b686772e986902150a647 /client/src/app/+my-library/my-video-imports/my-video-imports.component.ts | |
parent | 0567049a9819d67070aa6d548a75a7e632a4aaa4 (diff) | |
download | PeerTube-a3b472a12ec6e57dbe2f650419f8064864686eab.tar.gz PeerTube-a3b472a12ec6e57dbe2f650419f8064864686eab.tar.zst PeerTube-a3b472a12ec6e57dbe2f650419f8064864686eab.zip |
Add ability to list imports of a channel sync
Diffstat (limited to 'client/src/app/+my-library/my-video-imports/my-video-imports.component.ts')
-rw-r--r-- | client/src/app/+my-library/my-video-imports/my-video-imports.component.ts | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/client/src/app/+my-library/my-video-imports/my-video-imports.component.ts b/client/src/app/+my-library/my-video-imports/my-video-imports.component.ts index f01558061..46d689bd1 100644 --- a/client/src/app/+my-library/my-video-imports/my-video-imports.component.ts +++ b/client/src/app/+my-library/my-video-imports/my-video-imports.component.ts | |||
@@ -33,12 +33,16 @@ export class MyVideoImportsComponent extends RestTable implements OnInit { | |||
33 | switch (state) { | 33 | switch (state) { |
34 | case VideoImportState.FAILED: | 34 | case VideoImportState.FAILED: |
35 | return 'badge-red' | 35 | return 'badge-red' |
36 | |||
36 | case VideoImportState.REJECTED: | 37 | case VideoImportState.REJECTED: |
37 | return 'badge-banned' | 38 | return 'badge-banned' |
39 | |||
38 | case VideoImportState.PENDING: | 40 | case VideoImportState.PENDING: |
39 | return 'badge-yellow' | 41 | return 'badge-yellow' |
42 | |||
40 | case VideoImportState.PROCESSING: | 43 | case VideoImportState.PROCESSING: |
41 | return 'badge-blue' | 44 | return 'badge-blue' |
45 | |||
42 | default: | 46 | default: |
43 | return 'badge-green' | 47 | return 'badge-green' |
44 | } | 48 | } |
@@ -87,7 +91,7 @@ export class MyVideoImportsComponent extends RestTable implements OnInit { | |||
87 | } | 91 | } |
88 | 92 | ||
89 | protected reloadData () { | 93 | protected reloadData () { |
90 | this.videoImportService.getMyVideoImports(this.pagination, this.sort) | 94 | this.videoImportService.getMyVideoImports(this.pagination, this.sort, this.search) |
91 | .subscribe({ | 95 | .subscribe({ |
92 | next: resultList => { | 96 | next: resultList => { |
93 | this.videoImports = resultList.data | 97 | this.videoImports = resultList.data |