X-Git-Url: https://git.immae.eu/?a=blobdiff_plain;f=client%2Fsrc%2Fapp%2F%2Badmin%2Ffollows%2Ffollows.routes.ts;h=1825ce2789c9ea767d55506ce7b6f9f7194bd3ac;hb=22f25c740bf3eb24d9988ab6add8e1a6aec1b0bd;hp=298733eb03559fad776ef150c6ac11da65c9b19a;hpb=cf59a2a0c367683ba35758419499bf6087c192ec;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..1825ce278 100644 --- a/client/src/app/+admin/follows/follows.routes.ts +++ b/client/src/app/+admin/follows/follows.routes.ts @@ -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,18 +32,13 @@ export const FollowsRoutes: Routes = [ component: FollowersListComponent, data: { meta: { - title: 'Followers list' + title: $localize`Followers` } } }, { path: 'following-add', - component: FollowingAddComponent, - data: { - meta: { - title: 'Add follow' - } - } + redirectTo: 'following-list' }, { path: 'video-redundancies-list',