diff options
author | Chocobozzz <me@florianbigard.com> | 2018-08-31 17:18:13 +0200 |
---|---|---|
committer | Chocobozzz <me@florianbigard.com> | 2018-08-31 17:22:01 +0200 |
commit | 9a629c6efbe39dfac290347670ca41b0d7100f41 (patch) | |
tree | 22c491983071aebe928fe73a2c51a8347fc78b8a /client/src | |
parent | 4ccb6c083025005a495e8ed40ea352c541f66951 (diff) | |
download | PeerTube-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.ts | 1 | ||||
-rw-r--r-- | client/src/app/videos/video-list/video-trending.component.ts | 2 |
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' | |||
18 | export class VideoTrendingComponent extends AbstractVideoList implements OnInit, OnDestroy { | 18 | export 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, |