From d8b34ee55b654912f86bb8b472d391ced8c28f64 Mon Sep 17 00:00:00 2001 From: Rigel Kent Date: Wed, 13 Jan 2021 09:16:15 +0100 Subject: Allow user to search through their watch history (#3576) * allow user to search through their watch history * add tests for search in watch history * Update client/src/app/shared/shared-main/users/user-history.service.ts --- client/src/app/shared/shared-main/users/user-history.service.ts | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'client/src/app/shared/shared-main/users/user-history.service.ts') diff --git a/client/src/app/shared/shared-main/users/user-history.service.ts b/client/src/app/shared/shared-main/users/user-history.service.ts index 43970dc5b..bb87dcba8 100644 --- a/client/src/app/shared/shared-main/users/user-history.service.ts +++ b/client/src/app/shared/shared-main/users/user-history.service.ts @@ -18,11 +18,12 @@ export class UserHistoryService { private videoService: VideoService ) {} - getUserVideosHistory (historyPagination: ComponentPaginationLight) { + getUserVideosHistory (historyPagination: ComponentPaginationLight, search?: string) { const pagination = this.restService.componentPaginationToRestPagination(historyPagination) let params = new HttpParams() params = this.restService.addRestGetParams(params, pagination) + params = params.append('search', search) return this.authHttp .get>(UserHistoryService.BASE_USER_VIDEOS_HISTORY_URL, { params }) -- cgit v1.2.3