diff options
author | Chocobozzz <me@florianbigard.com> | 2019-06-19 14:55:58 +0200 |
---|---|---|
committer | Chocobozzz <me@florianbigard.com> | 2019-06-19 15:05:36 +0200 |
commit | 3caf77d3b11f2dbc12e52d665183d36604c1dab9 (patch) | |
tree | 53e08727d5f1dc8be2bd4f4a14dadc05f607a9fb /client/src/app/videos/video-list/video-local.component.ts | |
parent | bbe078ba55be635b5fc92f8f6286c45792b9e7e5 (diff) | |
download | PeerTube-3caf77d3b11f2dbc12e52d665183d36604c1dab9.tar.gz PeerTube-3caf77d3b11f2dbc12e52d665183d36604c1dab9.tar.zst PeerTube-3caf77d3b11f2dbc12e52d665183d36604c1dab9.zip |
Add language filters in user preferences
Diffstat (limited to 'client/src/app/videos/video-list/video-local.component.ts')
-rw-r--r-- | client/src/app/videos/video-list/video-local.component.ts | 10 |
1 files changed, 9 insertions, 1 deletions
diff --git a/client/src/app/videos/video-list/video-local.component.ts b/client/src/app/videos/video-list/video-local.component.ts index 65543343c..5de4a13af 100644 --- a/client/src/app/videos/video-list/video-local.component.ts +++ b/client/src/app/videos/video-list/video-local.component.ts | |||
@@ -21,6 +21,8 @@ export class VideoLocalComponent extends AbstractVideoList implements OnInit, On | |||
21 | sort = '-publishedAt' as VideoSortField | 21 | sort = '-publishedAt' as VideoSortField |
22 | filter: VideoFilter = 'local' | 22 | filter: VideoFilter = 'local' |
23 | 23 | ||
24 | useUserVideoLanguagePreferences = true | ||
25 | |||
24 | constructor ( | 26 | constructor ( |
25 | protected i18n: I18n, | 27 | protected i18n: I18n, |
26 | protected router: Router, | 28 | protected router: Router, |
@@ -54,7 +56,13 @@ export class VideoLocalComponent extends AbstractVideoList implements OnInit, On | |||
54 | getVideosObservable (page: number) { | 56 | getVideosObservable (page: number) { |
55 | const newPagination = immutableAssign(this.pagination, { currentPage: page }) | 57 | const newPagination = immutableAssign(this.pagination, { currentPage: page }) |
56 | 58 | ||
57 | return this.videoService.getVideos(newPagination, this.sort, this.filter, this.categoryOneOf) | 59 | return this.videoService.getVideos({ |
60 | videoPagination: newPagination, | ||
61 | sort: this.sort, | ||
62 | filter: this.filter, | ||
63 | categoryOneOf: this.categoryOneOf, | ||
64 | languageOneOf: this.languageOneOf | ||
65 | }) | ||
58 | } | 66 | } |
59 | 67 | ||
60 | generateSyndicationList () { | 68 | generateSyndicationList () { |