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
component: FollowingListComponent,
data: {
meta: {
- title: 'Following list'
+ title: $localize`Following`
}
}
},
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',