1 import { Routes } from '@angular/router'
2 import { UserRightGuard } from '@app/core'
3 import { UserRight } from '@shared/models'
4 import { UserCreateComponent, UserUpdateComponent } from './user-edit'
5 import { UserListComponent } from './user-list'
7 export const usersRoutes: Routes = [
10 canActivate: [ UserRightGuard ],
12 userRight: UserRight.MANAGE_USERS
22 component: UserListComponent,
25 title: $localize`Users list`
31 component: UserCreateComponent,
34 title: $localize`Create a user`
40 component: UserUpdateComponent,
43 title: $localize`Update a user`