]> git.immae.eu Git - github/Chocobozzz/PeerTube.git/blame - client/src/app/+admin/overview/users/users.routes.ts
Remove unnecessary onPage event on admin tables
[github/Chocobozzz/PeerTube.git] / client / src / app / +admin / overview / users / users.routes.ts
CommitLineData
df98563e 1import { Routes } from '@angular/router'
2989628b 2import { UserRightGuard } from '@app/core'
67ed6552 3import { UserRight } from '@shared/models'
4c200caa 4import { UserCreateComponent, UserUpdateComponent } from './user-edit'
df98563e 5import { UserListComponent } from './user-list'
7da18e44 6
ab32b0fc 7export const UsersRoutes: Routes = [
7da18e44 8 {
1f0215a9 9 path: 'users',
954605a8
C
10 canActivate: [ UserRightGuard ],
11 data: {
12 userRight: UserRight.MANAGE_USERS
13 },
1f0215a9
C
14 children: [
15 {
16 path: '',
17 redirectTo: 'list',
18 pathMatch: 'full'
19 },
20 {
21 path: 'list',
22 component: UserListComponent,
23 data: {
24 meta: {
f29f487e 25 title: $localize`Users list`
b58c69a1 26 }
1f0215a9
C
27 }
28 },
29 {
4c200caa
C
30 path: 'create',
31 component: UserCreateComponent,
1f0215a9
C
32 data: {
33 meta: {
f29f487e 34 title: $localize`Create a user`
b58c69a1 35 }
7da18e44 36 }
8094a898
C
37 },
38 {
9b9b1805 39 path: 'update/:id',
8094a898
C
40 component: UserUpdateComponent,
41 data: {
42 meta: {
f29f487e 43 title: $localize`Update a user`
8094a898
C
44 }
45 }
1f0215a9
C
46 }
47 ]
48 }
df98563e 49]