]> git.immae.eu Git - github/Chocobozzz/PeerTube.git/blobdiff - 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
index 298733eb03559fad776ef150c6ac11da65c9b19a..718493dc74a52f5d75d80a81112b406bc0245cee 100644 (file)
@@ -1,17 +1,13 @@
 import { Routes } from '@angular/router'
-
-import { UserRightGuard } from '../../core'
-import { FollowsComponent } from './follows.component'
-import { FollowingAddComponent } from './following-add'
+import { VideoRedundanciesListComponent } from '@app/+admin/follows/video-redundancies-list'
+import { UserRightGuard } from '@app/core'
+import { UserRight } from '@shared/models'
 import { FollowersListComponent } from './followers-list'
-import { UserRight } from '../../../../../shared'
 import { FollowingListComponent } from './following-list/following-list.component'
-import { VideoRedundanciesListComponent } from '@app/+admin/follows/video-redundancies-list'
 
 export const FollowsRoutes: Routes = [
   {
     path: 'follows',
-    component: FollowsComponent,
     canActivate: [ UserRightGuard ],
     data: {
       userRight: UserRight.MANAGE_SERVER_FOLLOW
@@ -27,7 +23,7 @@ export const FollowsRoutes: Routes = [
         component: FollowingListComponent,
         data: {
           meta: {
-            title: 'Following list'
+            title: $localize`Following`
           }
         }
       },
@@ -36,22 +32,22 @@ export const FollowsRoutes: Routes = [
         component: FollowersListComponent,
         data: {
           meta: {
-            title: 'Followers list'
+            title: $localize`Followers`
           }
         }
       },
       {
         path: 'following-add',
-        component: FollowingAddComponent,
+        redirectTo: 'following-list'
+      },
+      {
+        path: 'video-redundancies-list',
+        component: VideoRedundanciesListComponent,
         data: {
           meta: {
-            title: 'Add follow'
+            title: $localize`Redundancy`
           }
         }
-      },
-      {
-        path: 'video-redundancies-list',
-        component: VideoRedundanciesListComponent
       }
     ]
   }