aboutsummaryrefslogtreecommitdiffhomepage
path: root/client/src/app/shared/shared-main/video-channel/video-channel.service.ts
diff options
context:
space:
mode:
Diffstat (limited to 'client/src/app/shared/shared-main/video-channel/video-channel.service.ts')
-rw-r--r--client/src/app/shared/shared-main/video-channel/video-channel.service.ts7
1 files changed, 6 insertions, 1 deletions
diff --git a/client/src/app/shared/shared-main/video-channel/video-channel.service.ts b/client/src/app/shared/shared-main/video-channel/video-channel.service.ts
index 5483e305f..64dcf638a 100644
--- a/client/src/app/shared/shared-main/video-channel/video-channel.service.ts
+++ b/client/src/app/shared/shared-main/video-channel/video-channel.service.ts
@@ -43,7 +43,8 @@ export class VideoChannelService {
43 listAccountVideoChannels ( 43 listAccountVideoChannels (
44 account: Account, 44 account: Account,
45 componentPagination?: ComponentPaginationLight, 45 componentPagination?: ComponentPaginationLight,
46 withStats = false 46 withStats = false,
47 search?: string
47 ): Observable<ResultList<VideoChannel>> { 48 ): Observable<ResultList<VideoChannel>> {
48 const pagination = componentPagination 49 const pagination = componentPagination
49 ? this.restService.componentPaginationToRestPagination(componentPagination) 50 ? this.restService.componentPaginationToRestPagination(componentPagination)
@@ -53,6 +54,10 @@ export class VideoChannelService {
53 params = this.restService.addRestGetParams(params, pagination) 54 params = this.restService.addRestGetParams(params, pagination)
54 params = params.set('withStats', withStats + '') 55 params = params.set('withStats', withStats + '')
55 56
57 if (search) {
58 params = params.set('search', search)
59 }
60
56 const url = AccountService.BASE_ACCOUNT_URL + account.nameWithHost + '/video-channels' 61 const url = AccountService.BASE_ACCOUNT_URL + account.nameWithHost + '/video-channels'
57 return this.authHttp.get<ResultList<VideoChannelServer>>(url, { params }) 62 return this.authHttp.get<ResultList<VideoChannelServer>>(url, { params })
58 .pipe( 63 .pipe(