]> git.immae.eu Git - github/Chocobozzz/PeerTube.git/blob - client/src/app/+admin/follows/follows.routes.ts
Better display redundancy pies
[github/Chocobozzz/PeerTube.git] / client / src / app / +admin / follows / follows.routes.ts
1 import { Routes } from '@angular/router'
2 import { VideoRedundanciesListComponent } from '@app/+admin/follows/video-redundancies-list'
3 import { UserRightGuard } from '@app/core'
4 import { UserRight } from '@shared/models'
5 import { FollowersListComponent } from './followers-list'
6 import { FollowingListComponent } from './following-list/following-list.component'
7
8 export const FollowsRoutes: Routes = [
9 {
10 path: 'follows',
11 canActivate: [ UserRightGuard ],
12 data: {
13 userRight: UserRight.MANAGE_SERVER_FOLLOW
14 },
15 children: [
16 {
17 path: '',
18 redirectTo: 'following-list',
19 pathMatch: 'full'
20 },
21 {
22 path: 'following-list',
23 component: FollowingListComponent,
24 data: {
25 meta: {
26 title: $localize`Following`
27 }
28 }
29 },
30 {
31 path: 'followers-list',
32 component: FollowersListComponent,
33 data: {
34 meta: {
35 title: $localize`Followers`
36 }
37 }
38 },
39 {
40 path: 'following-add',
41 redirectTo: 'following-list'
42 },
43 {
44 path: 'video-redundancies-list',
45 component: VideoRedundanciesListComponent
46 }
47 ]
48 }
49 ]