diff options
author | Chocobozzz <me@florianbigard.com> | 2018-07-25 17:18:46 +0200 |
---|---|---|
committer | Chocobozzz <me@florianbigard.com> | 2018-07-25 17:18:46 +0200 |
commit | d59cba295b7f2ead41e1828c1567e60942476367 (patch) | |
tree | 2df3f92a07d7672268362bf9d51f2d685a91f0d2 /client/src/app/shared/video/video.service.ts | |
parent | 87bec1051b9706b4ae1efbd92e4d974c01d98c51 (diff) | |
download | PeerTube-d59cba295b7f2ead41e1828c1567e60942476367.tar.gz PeerTube-d59cba295b7f2ead41e1828c1567e60942476367.tar.zst PeerTube-d59cba295b7f2ead41e1828c1567e60942476367.zip |
category parma -> categoryOneOf (videos list)
Diffstat (limited to 'client/src/app/shared/video/video.service.ts')
-rw-r--r-- | client/src/app/shared/video/video.service.ts | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/client/src/app/shared/video/video.service.ts b/client/src/app/shared/video/video.service.ts index f316d31ea..ddf365959 100644 --- a/client/src/app/shared/video/video.service.ts +++ b/client/src/app/shared/video/video.service.ts | |||
@@ -159,7 +159,7 @@ export class VideoService { | |||
159 | videoPagination: ComponentPagination, | 159 | videoPagination: ComponentPagination, |
160 | sort: VideoSortField, | 160 | sort: VideoSortField, |
161 | filter?: VideoFilter, | 161 | filter?: VideoFilter, |
162 | category?: number | 162 | categoryOneOf?: number |
163 | ): Observable<{ videos: Video[], totalVideos: number }> { | 163 | ): Observable<{ videos: Video[], totalVideos: number }> { |
164 | const pagination = this.restService.componentPaginationToRestPagination(videoPagination) | 164 | const pagination = this.restService.componentPaginationToRestPagination(videoPagination) |
165 | 165 | ||
@@ -170,8 +170,8 @@ export class VideoService { | |||
170 | params = params.set('filter', filter) | 170 | params = params.set('filter', filter) |
171 | } | 171 | } |
172 | 172 | ||
173 | if (category) { | 173 | if (categoryOneOf) { |
174 | params = params.set('category', category + '') | 174 | params = params.set('categoryOneOf', categoryOneOf + '') |
175 | } | 175 | } |
176 | 176 | ||
177 | return this.authHttp | 177 | return this.authHttp |
@@ -207,12 +207,12 @@ export class VideoService { | |||
207 | return feeds | 207 | return feeds |
208 | } | 208 | } |
209 | 209 | ||
210 | getVideoFeedUrls (sort: VideoSortField, filter?: VideoFilter, category?: number) { | 210 | getVideoFeedUrls (sort: VideoSortField, filter?: VideoFilter, categoryOneOf?: number) { |
211 | let params = this.restService.addRestGetParams(new HttpParams(), undefined, sort) | 211 | let params = this.restService.addRestGetParams(new HttpParams(), undefined, sort) |
212 | 212 | ||
213 | if (filter) params = params.set('filter', filter) | 213 | if (filter) params = params.set('filter', filter) |
214 | 214 | ||
215 | if (category) params = params.set('category', category + '') | 215 | if (categoryOneOf) params = params.set('categoryOneOf', categoryOneOf + '') |
216 | 216 | ||
217 | return this.buildBaseFeedUrls(params) | 217 | return this.buildBaseFeedUrls(params) |
218 | } | 218 | } |