X-Git-Url: https://git.immae.eu/?a=blobdiff_plain;f=client%2Fsrc%2Fapp%2F%2Badmin%2Ffollows%2Ffollows.routes.ts;h=718493dc74a52f5d75d80a81112b406bc0245cee;hb=474542d7ac60f7860daf9ea34d1c31968f43ab29;hp=8270ae444d3282b4356561733921c799822cd193;hpb=610d0be13b3d01f653ef269271dd667a57c85ef2;p=github%2FChocobozzz%2FPeerTube.git diff --git a/client/src/app/+admin/follows/follows.routes.ts b/client/src/app/+admin/follows/follows.routes.ts index 8270ae444..718493dc7 100644 --- a/client/src/app/+admin/follows/follows.routes.ts +++ b/client/src/app/+admin/follows/follows.routes.ts @@ -1,16 +1,13 @@ import { Routes } from '@angular/router' - -import { UserRightGuard } from '../../core' -import { FollowsComponent } from './follows.component' +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 @@ -26,7 +23,7 @@ export const FollowsRoutes: Routes = [ component: FollowingListComponent, data: { meta: { - title: 'Following list' + title: $localize`Following` } } }, @@ -35,7 +32,7 @@ export const FollowsRoutes: Routes = [ component: FollowersListComponent, data: { meta: { - title: 'Followers list' + title: $localize`Followers` } } }, @@ -45,7 +42,12 @@ export const FollowsRoutes: Routes = [ }, { path: 'video-redundancies-list', - component: VideoRedundanciesListComponent + component: VideoRedundanciesListComponent, + data: { + meta: { + title: $localize`Redundancy` + } + } } ] }