X-Git-Url: https://git.immae.eu/?a=blobdiff_plain;f=client%2Fsrc%2Fapp%2F%2Badmin%2Ffollows%2Ffollows.routes.ts;h=cd70daf77dc439dfa740c45dd8561c3b9df6d124;hb=8cbc40b2fe9d36ef0505b9441276ca561342e9e9;hp=298733eb03559fad776ef150c6ac11da65c9b19a;hpb=818c449b3c34e9f324ac744120c8774e724ab25e;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 298733eb0..cd70daf77 100644 --- a/client/src/app/+admin/follows/follows.routes.ts +++ b/client/src/app/+admin/follows/follows.routes.ts @@ -1,12 +1,10 @@ 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' +import { FollowsComponent } from './follows.component' export const FollowsRoutes: Routes = [ { @@ -27,7 +25,7 @@ export const FollowsRoutes: Routes = [ component: FollowingListComponent, data: { meta: { - title: 'Following list' + title: $localize`Following list` } } }, @@ -36,18 +34,13 @@ export const FollowsRoutes: Routes = [ component: FollowersListComponent, data: { meta: { - title: 'Followers list' + title: $localize`Followers list` } } }, { path: 'following-add', - component: FollowingAddComponent, - data: { - meta: { - title: 'Add follow' - } - } + redirectTo: 'following-list' }, { path: 'video-redundancies-list',