aboutsummaryrefslogtreecommitdiffhomepage
path: root/client/src/app/shared
diff options
context:
space:
mode:
Diffstat (limited to 'client/src/app/shared')
-rw-r--r--client/src/app/shared/shared-user-subscription/user-subscription.service.ts11
1 files changed, 8 insertions, 3 deletions
diff --git a/client/src/app/shared/shared-user-subscription/user-subscription.service.ts b/client/src/app/shared/shared-user-subscription/user-subscription.service.ts
index 732ed6bcb..eb1fdf91c 100644
--- a/client/src/app/shared/shared-user-subscription/user-subscription.service.ts
+++ b/client/src/app/shared/shared-user-subscription/user-subscription.service.ts
@@ -105,13 +105,18 @@ export class UserSubscriptionService {
105 ) 105 )
106 } 106 }
107 107
108 listSubscriptions (componentPagination: ComponentPaginationLight): Observable<ResultList<VideoChannel>> { 108 listSubscriptions (parameters: {
109 pagination: ComponentPaginationLight
110 search: string
111 }): Observable<ResultList<VideoChannel>> {
112 const { pagination, search } = parameters
109 const url = UserSubscriptionService.BASE_USER_SUBSCRIPTIONS_URL 113 const url = UserSubscriptionService.BASE_USER_SUBSCRIPTIONS_URL
110 114
111 const pagination = this.restService.componentPaginationToRestPagination(componentPagination) 115 const restPagination = this.restService.componentPaginationToRestPagination(pagination)
112 116
113 let params = new HttpParams() 117 let params = new HttpParams()
114 params = this.restService.addRestGetParams(params, pagination) 118 params = this.restService.addRestGetParams(params, restPagination)
119 if (search) params = params.append('search', search)
115 120
116 return this.authHttp.get<ResultList<VideoChannelServer>>(url, { params }) 121 return this.authHttp.get<ResultList<VideoChannelServer>>(url, { params })
117 .pipe( 122 .pipe(