From 3caf77d3b11f2dbc12e52d665183d36604c1dab9 Mon Sep 17 00:00:00 2001 From: Chocobozzz Date: Wed, 19 Jun 2019 14:55:58 +0200 Subject: Add language filters in user preferences --- client/src/app/videos/video-list/video-trending.component.ts | 10 +++++++++- 1 file changed, 9 insertions(+), 1 deletion(-) (limited to 'client/src/app/videos/video-list/video-trending.component.ts') diff --git a/client/src/app/videos/video-list/video-trending.component.ts b/client/src/app/videos/video-list/video-trending.component.ts index a2c819ebe..5f1d5055b 100644 --- a/client/src/app/videos/video-list/video-trending.component.ts +++ b/client/src/app/videos/video-list/video-trending.component.ts @@ -18,6 +18,8 @@ export class VideoTrendingComponent extends AbstractVideoList implements OnInit, titlePage: string defaultSort: VideoSortField = '-trending' + useUserVideoLanguagePreferences = true + constructor ( protected i18n: I18n, protected router: Router, @@ -59,7 +61,13 @@ export class VideoTrendingComponent extends AbstractVideoList implements OnInit, getVideosObservable (page: number) { const newPagination = immutableAssign(this.pagination, { currentPage: page }) - return this.videoService.getVideos(newPagination, this.sort, undefined, this.categoryOneOf) + return this.videoService.getVideos({ + videoPagination: newPagination, + sort: this.sort, + filter: undefined, + categoryOneOf: this.categoryOneOf, + languageOneOf: this.languageOneOf + }) } generateSyndicationList () { -- cgit v1.2.3