aboutsummaryrefslogtreecommitdiffhomepage
path: root/client/src/app/shared/video/abstract-video-list.ts
diff options
context:
space:
mode:
authorChocobozzz <me@florianbigard.com>2018-07-25 17:18:46 +0200
committerChocobozzz <me@florianbigard.com>2018-07-25 17:18:46 +0200
commitd59cba295b7f2ead41e1828c1567e60942476367 (patch)
tree2df3f92a07d7672268362bf9d51f2d685a91f0d2 /client/src/app/shared/video/abstract-video-list.ts
parent87bec1051b9706b4ae1efbd92e4d974c01d98c51 (diff)
downloadPeerTube-d59cba295b7f2ead41e1828c1567e60942476367.tar.gz
PeerTube-d59cba295b7f2ead41e1828c1567e60942476367.tar.zst
PeerTube-d59cba295b7f2ead41e1828c1567e60942476367.zip
category parma -> categoryOneOf (videos list)
Diffstat (limited to 'client/src/app/shared/video/abstract-video-list.ts')
-rw-r--r--client/src/app/shared/video/abstract-video-list.ts4
1 files changed, 2 insertions, 2 deletions
diff --git a/client/src/app/shared/video/abstract-video-list.ts b/client/src/app/shared/video/abstract-video-list.ts
index d60536e20..59d3c1ebe 100644
--- a/client/src/app/shared/video/abstract-video-list.ts
+++ b/client/src/app/shared/video/abstract-video-list.ts
@@ -24,7 +24,7 @@ export abstract class AbstractVideoList implements OnInit, OnDestroy {
24 totalItems: null 24 totalItems: null
25 } 25 }
26 sort: VideoSortField = '-publishedAt' 26 sort: VideoSortField = '-publishedAt'
27 category?: number 27 categoryOneOf?: number
28 defaultSort: VideoSortField = '-publishedAt' 28 defaultSort: VideoSortField = '-publishedAt'
29 syndicationItems = [] 29 syndicationItems = []
30 30
@@ -168,7 +168,7 @@ export abstract class AbstractVideoList implements OnInit, OnDestroy {
168 168
169 protected loadRouteParams (routeParams: { [ key: string ]: any }) { 169 protected loadRouteParams (routeParams: { [ key: string ]: any }) {
170 this.sort = routeParams['sort'] as VideoSortField || this.defaultSort 170 this.sort = routeParams['sort'] as VideoSortField || this.defaultSort
171 this.category = routeParams['category'] 171 this.categoryOneOf = routeParams['categoryOneOf']
172 if (routeParams['page'] !== undefined) { 172 if (routeParams['page'] !== undefined) {
173 this.pagination.currentPage = parseInt(routeParams['page'], 10) 173 this.pagination.currentPage = parseInt(routeParams['page'], 10)
174 } else { 174 } else {