aboutsummaryrefslogtreecommitdiffhomepage
path: root/client/src/app/shared/shared-main/video/video-import.service.ts
diff options
context:
space:
mode:
authorChocobozzz <me@florianbigard.com>2022-08-10 11:51:13 +0200
committerChocobozzz <me@florianbigard.com>2022-08-10 14:32:00 +0200
commita3b472a12ec6e57dbe2f650419f8064864686eab (patch)
treef36559488e34493c029b686772e986902150a647 /client/src/app/shared/shared-main/video/video-import.service.ts
parent0567049a9819d67070aa6d548a75a7e632a4aaa4 (diff)
downloadPeerTube-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/shared/shared-main/video/video-import.service.ts')
-rw-r--r--client/src/app/shared/shared-main/video/video-import.service.ts15
1 files changed, 14 insertions, 1 deletions
diff --git a/client/src/app/shared/shared-main/video/video-import.service.ts b/client/src/app/shared/shared-main/video/video-import.service.ts
index 0a610ab1f..f9720033a 100644
--- a/client/src/app/shared/shared-main/video/video-import.service.ts
+++ b/client/src/app/shared/shared-main/video/video-import.service.ts
@@ -43,10 +43,23 @@ export class VideoImportService {
43 .pipe(catchError(res => this.restExtractor.handleError(res))) 43 .pipe(catchError(res => this.restExtractor.handleError(res)))
44 } 44 }
45 45
46 getMyVideoImports (pagination: RestPagination, sort: SortMeta): Observable<ResultList<VideoImport>> { 46 getMyVideoImports (pagination: RestPagination, sort: SortMeta, search?: string): Observable<ResultList<VideoImport>> {
47 let params = new HttpParams() 47 let params = new HttpParams()
48 params = this.restService.addRestGetParams(params, pagination, sort) 48 params = this.restService.addRestGetParams(params, pagination, sort)
49 49
50 if (search) {
51 const filters = this.restService.parseQueryStringFilter(search, {
52 videoChannelSyncId: {
53 prefix: 'videoChannelSyncId:'
54 },
55 targetUrl: {
56 prefix: 'targetUrl:'
57 }
58 })
59
60 params = this.restService.addObjectParams(params, filters)
61 }
62
50 return this.authHttp 63 return this.authHttp
51 .get<ResultList<VideoImport>>(UserService.BASE_USERS_URL + '/me/videos/imports', { params }) 64 .get<ResultList<VideoImport>>(UserService.BASE_USERS_URL + '/me/videos/imports', { params })
52 .pipe( 65 .pipe(