diff options
author | Chocobozzz <florian.bigard@gmail.com> | 2017-11-15 10:10:41 +0100 |
---|---|---|
committer | Chocobozzz <florian.bigard@gmail.com> | 2017-11-27 19:40:51 +0100 |
commit | 51548b31815c6f96f314ae96588a9adca150519d (patch) | |
tree | b3298447b7ac128823016fdec92d083e07d9432e /client/src/app/+admin/follows/follows.routes.ts | |
parent | 350e31d6b64e4973dfa5e9f7b46841cb09aeb1ad (diff) | |
download | PeerTube-51548b31815c6f96f314ae96588a9adca150519d.tar.gz PeerTube-51548b31815c6f96f314ae96588a9adca150519d.tar.zst PeerTube-51548b31815c6f96f314ae96588a9adca150519d.zip |
Add follow tabs
Following
Follow
Followers
Diffstat (limited to 'client/src/app/+admin/follows/follows.routes.ts')
-rw-r--r-- | client/src/app/+admin/follows/follows.routes.ts | 53 |
1 files changed, 53 insertions, 0 deletions
diff --git a/client/src/app/+admin/follows/follows.routes.ts b/client/src/app/+admin/follows/follows.routes.ts new file mode 100644 index 000000000..b7d44f75b --- /dev/null +++ b/client/src/app/+admin/follows/follows.routes.ts | |||
@@ -0,0 +1,53 @@ | |||
1 | import { Routes } from '@angular/router' | ||
2 | |||
3 | import { UserRightGuard } from '../../core' | ||
4 | import { FollowsComponent } from './follows.component' | ||
5 | import { FollowingAddComponent } from './following-add' | ||
6 | import { FollowersListComponent } from './followers-list' | ||
7 | import { UserRight } from '../../../../../shared' | ||
8 | import { FollowingListComponent } from './following-list/following-list.component' | ||
9 | |||
10 | export const FollowsRoutes: Routes = [ | ||
11 | { | ||
12 | path: 'follows', | ||
13 | component: FollowsComponent, | ||
14 | canActivate: [ UserRightGuard ], | ||
15 | data: { | ||
16 | userRight: UserRight.MANAGE_APPLICATION_FOLLOW | ||
17 | }, | ||
18 | children: [ | ||
19 | { | ||
20 | path: '', | ||
21 | redirectTo: 'following-list', | ||
22 | pathMatch: 'full' | ||
23 | }, | ||
24 | { | ||
25 | path: 'following-list', | ||
26 | component: FollowingListComponent, | ||
27 | data: { | ||
28 | meta: { | ||
29 | title: 'Following list' | ||
30 | } | ||
31 | } | ||
32 | }, | ||
33 | { | ||
34 | path: 'followers-list', | ||
35 | component: FollowersListComponent, | ||
36 | data: { | ||
37 | meta: { | ||
38 | title: 'Followers list' | ||
39 | } | ||
40 | } | ||
41 | }, | ||
42 | { | ||
43 | path: 'following-add', | ||
44 | component: FollowingAddComponent, | ||
45 | data: { | ||
46 | meta: { | ||
47 | title: 'Add follow' | ||
48 | } | ||
49 | } | ||
50 | } | ||
51 | ] | ||
52 | } | ||
53 | ] | ||