diff options
author | Chocobozzz <me@florianbigard.com> | 2018-08-21 16:18:59 +0200 |
---|---|---|
committer | Chocobozzz <me@florianbigard.com> | 2018-08-27 09:41:54 +0200 |
commit | 22a16e36f6526887ed8f5e5d3c9f9e5da0b4a8cd (patch) | |
tree | 93c53e0619f966bd9ff1bb698c411277a9447a41 /client/src/app/videos/videos-routing.module.ts | |
parent | 99492dbc0d87ef54d0dab7d8d44f8d0de5722bdd (diff) | |
download | PeerTube-22a16e36f6526887ed8f5e5d3c9f9e5da0b4a8cd.tar.gz PeerTube-22a16e36f6526887ed8f5e5d3c9f9e5da0b4a8cd.tar.zst PeerTube-22a16e36f6526887ed8f5e5d3c9f9e5da0b4a8cd.zip |
Add local user subscriptions
Diffstat (limited to 'client/src/app/videos/videos-routing.module.ts')
-rw-r--r-- | client/src/app/videos/videos-routing.module.ts | 15 |
1 files changed, 10 insertions, 5 deletions
diff --git a/client/src/app/videos/videos-routing.module.ts b/client/src/app/videos/videos-routing.module.ts index 538a43c6d..18ed52570 100644 --- a/client/src/app/videos/videos-routing.module.ts +++ b/client/src/app/videos/videos-routing.module.ts | |||
@@ -5,6 +5,7 @@ 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 { VideosComponent } from './videos.component' | 7 | import { VideosComponent } from './videos.component' |
8 | import { VideoUserSubscriptionsComponent } from '@app/videos/video-list/video-user-subscriptions.component' | ||
8 | 9 | ||
9 | const videosRoutes: Routes = [ | 10 | const videosRoutes: Routes = [ |
10 | { | 11 | { |
@@ -13,11 +14,6 @@ const videosRoutes: Routes = [ | |||
13 | canActivateChild: [ MetaGuard ], | 14 | canActivateChild: [ MetaGuard ], |
14 | children: [ | 15 | children: [ |
15 | { | 16 | { |
16 | path: 'list', | ||
17 | pathMatch: 'full', | ||
18 | redirectTo: 'recently-added' | ||
19 | }, | ||
20 | { | ||
21 | path: 'trending', | 17 | path: 'trending', |
22 | component: VideoTrendingComponent, | 18 | component: VideoTrendingComponent, |
23 | data: { | 19 | data: { |
@@ -36,6 +32,15 @@ const videosRoutes: Routes = [ | |||
36 | } | 32 | } |
37 | }, | 33 | }, |
38 | { | 34 | { |
35 | path: 'subscriptions', | ||
36 | component: VideoUserSubscriptionsComponent, | ||
37 | data: { | ||
38 | meta: { | ||
39 | title: 'Subscriptions' | ||
40 | } | ||
41 | } | ||
42 | }, | ||
43 | { | ||
39 | path: 'local', | 44 | path: 'local', |
40 | component: VideoLocalComponent, | 45 | component: VideoLocalComponent, |
41 | data: { | 46 | data: { |