aboutsummaryrefslogtreecommitdiffhomepage
path: root/client/src
diff options
context:
space:
mode:
authorChocobozzz <me@florianbigard.com>2018-08-31 17:18:13 +0200
committerChocobozzz <me@florianbigard.com>2018-08-31 17:22:01 +0200
commit9a629c6efbe39dfac290347670ca41b0d7100f41 (patch)
tree22c491983071aebe928fe73a2c51a8347fc78b8a /client/src
parent4ccb6c083025005a495e8ed40ea352c541f66951 (diff)
downloadPeerTube-9a629c6efbe39dfac290347670ca41b0d7100f41.tar.gz
PeerTube-9a629c6efbe39dfac290347670ca41b0d7100f41.tar.zst
PeerTube-9a629c6efbe39dfac290347670ca41b0d7100f41.zip
Trending by interval
Diffstat (limited to 'client/src')
-rw-r--r--client/src/app/shared/video/sort-field.type.ts1
-rw-r--r--client/src/app/videos/video-list/video-trending.component.ts2
2 files changed, 2 insertions, 1 deletions
diff --git a/client/src/app/shared/video/sort-field.type.ts b/client/src/app/shared/video/sort-field.type.ts
index 2192745b9..d1088d244 100644
--- a/client/src/app/shared/video/sort-field.type.ts
+++ b/client/src/app/shared/video/sort-field.type.ts
@@ -4,3 +4,4 @@ export type VideoSortField = 'name' | '-name'
4 | 'createdAt' | '-createdAt' 4 | 'createdAt' | '-createdAt'
5 | 'views' | '-views' 5 | 'views' | '-views'
6 | 'likes' | '-likes' 6 | 'likes' | '-likes'
7 | 'trending' | '-trending'
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 68bb70265..8f3d3842b 100644
--- a/client/src/app/videos/video-list/video-trending.component.ts
+++ b/client/src/app/videos/video-list/video-trending.component.ts
@@ -18,7 +18,7 @@ import { ScreenService } from '@app/shared/misc/screen.service'
18export class VideoTrendingComponent extends AbstractVideoList implements OnInit, OnDestroy { 18export class VideoTrendingComponent extends AbstractVideoList implements OnInit, OnDestroy {
19 titlePage: string 19 titlePage: string
20 currentRoute = '/videos/trending' 20 currentRoute = '/videos/trending'
21 defaultSort: VideoSortField = '-views' 21 defaultSort: VideoSortField = '-trending'
22 22
23 constructor ( 23 constructor (
24 protected router: Router, 24 protected router: Router,