diff options
author | Julien Maulny <julien.maulny@protonmail.com> | 2019-10-01 23:11:53 +0200 |
---|---|---|
committer | Chocobozzz <chocobozzz@cpy.re> | 2019-10-18 14:04:10 +0200 |
commit | c07eb946531dd190ae50624832e1147c8ccf3692 (patch) | |
tree | c379da4a1e63a3d4a0a19a5832650fe4aa85b8e2 /client/src/app/videos/videos-routing.module.ts | |
parent | fff2183df6129362ad50941d4d1979d4aa292801 (diff) | |
download | PeerTube-c07eb946531dd190ae50624832e1147c8ccf3692.tar.gz PeerTube-c07eb946531dd190ae50624832e1147c8ccf3692.tar.zst PeerTube-c07eb946531dd190ae50624832e1147c8ccf3692.zip |
Add 'Most liked videos' page
Diffstat (limited to 'client/src/app/videos/videos-routing.module.ts')
-rw-r--r-- | client/src/app/videos/videos-routing.module.ts | 14 |
1 files changed, 14 insertions, 0 deletions
diff --git a/client/src/app/videos/videos-routing.module.ts b/client/src/app/videos/videos-routing.module.ts index f0049d8c4..11a087d0a 100644 --- a/client/src/app/videos/videos-routing.module.ts +++ b/client/src/app/videos/videos-routing.module.ts | |||
@@ -4,6 +4,7 @@ import { VideoLocalComponent } from '@app/videos/video-list/video-local.componen | |||
4 | import { MetaGuard } from '@ngx-meta/core' | 4 | import { MetaGuard } from '@ngx-meta/core' |
5 | import { VideoRecentlyAddedComponent } from './video-list/video-recently-added.component' | 5 | import { VideoRecentlyAddedComponent } from './video-list/video-recently-added.component' |
6 | import { VideoTrendingComponent } from './video-list/video-trending.component' | 6 | import { VideoTrendingComponent } from './video-list/video-trending.component' |
7 | import { VideoMostLikedComponent } from './video-list/video-most-liked.component' | ||
7 | import { VideosComponent } from './videos.component' | 8 | import { VideosComponent } from './videos.component' |
8 | import { VideoUserSubscriptionsComponent } from '@app/videos/video-list/video-user-subscriptions.component' | 9 | import { VideoUserSubscriptionsComponent } from '@app/videos/video-list/video-user-subscriptions.component' |
9 | import { VideoOverviewComponent } from '@app/videos/video-list/video-overview.component' | 10 | import { VideoOverviewComponent } from '@app/videos/video-list/video-overview.component' |
@@ -37,6 +38,19 @@ const videosRoutes: Routes = [ | |||
37 | } | 38 | } |
38 | }, | 39 | }, |
39 | { | 40 | { |
41 | path: 'most-liked', | ||
42 | component: VideoMostLikedComponent, | ||
43 | data: { | ||
44 | meta: { | ||
45 | title: 'Most liked videos' | ||
46 | }, | ||
47 | reuse: { | ||
48 | enabled: true, | ||
49 | key: 'most-liked-videos-list' | ||
50 | } | ||
51 | } | ||
52 | }, | ||
53 | { | ||
40 | path: 'recently-added', | 54 | path: 'recently-added', |
41 | component: VideoRecentlyAddedComponent, | 55 | component: VideoRecentlyAddedComponent, |
42 | data: { | 56 | data: { |