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