]> git.immae.eu Git - github/Chocobozzz/PeerTube.git/blame - client/src/app/+admin/follows/follows.routes.ts
Add additional checks when importing a video
[github/Chocobozzz/PeerTube.git] / client / src / app / +admin / follows / follows.routes.ts
CommitLineData
51548b31 1import { Routes } from '@angular/router'
67ed6552
C
2import { VideoRedundanciesListComponent } from '@app/+admin/follows/video-redundancies-list'
3import { UserRightGuard } from '@app/core'
4import { UserRight } from '@shared/models'
51548b31 5import { FollowersListComponent } from './followers-list'
51548b31
C
6import { FollowingListComponent } from './following-list/following-list.component'
7
8export const FollowsRoutes: Routes = [
9 {
10 path: 'follows',
51548b31
C
11 canActivate: [ UserRightGuard ],
12 data: {
4610bc5b 13 userRight: UserRight.MANAGE_SERVER_FOLLOW
51548b31
C
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: {
4d029ef8 26 title: $localize`Following`
51548b31
C
27 }
28 }
29 },
30 {
31 path: 'followers-list',
32 component: FollowersListComponent,
33 data: {
34 meta: {
4d029ef8 35 title: $localize`Followers`
51548b31
C
36 }
37 }
38 },
39 {
40 path: 'following-add',
bb152476 41 redirectTo: 'following-list'
b764380a
C
42 },
43 {
44 path: 'video-redundancies-list',
474542d7
C
45 component: VideoRedundanciesListComponent,
46 data: {
47 meta: {
48 title: $localize`Redundancy`
49 }
50 }
51548b31
C
51 }
52 ]
53 }
54]