mirror of
https://github.com/zitadel/zitadel.git
synced 2025-04-16 18:11:29 +00:00

* project grant member edit * project grant member dialog, import cleanup * readd project roles * user login-methods cleanup * fix sw config, user grant context * delete user grants, context for creation, search * contributor box shadow * password to detail view * user detail notification * lint
41 lines
1.0 KiB
TypeScript
41 lines
1.0 KiB
TypeScript
import { NgModule } from '@angular/core';
|
|
import { RouterModule, Routes } from '@angular/router';
|
|
import { RoleGuard } from 'src/app/guards/role.guard';
|
|
|
|
import { AuthUserDetailComponent } from './auth-user-detail/auth-user-detail.component';
|
|
import { PasswordComponent } from './password/password.component';
|
|
import { UserDetailComponent } from './user-detail/user-detail.component';
|
|
|
|
const routes: Routes = [
|
|
{
|
|
path: 'me',
|
|
component: AuthUserDetailComponent,
|
|
},
|
|
{
|
|
path: 'me/password',
|
|
component: PasswordComponent,
|
|
},
|
|
{
|
|
path: ':id',
|
|
component: UserDetailComponent,
|
|
canActivate: [RoleGuard],
|
|
data: {
|
|
roles: ['user.read'],
|
|
},
|
|
},
|
|
{
|
|
path: ':id/password',
|
|
component: PasswordComponent,
|
|
canActivate: [RoleGuard],
|
|
data: {
|
|
roles: ['user.write'],
|
|
},
|
|
},
|
|
];
|
|
|
|
@NgModule({
|
|
imports: [RouterModule.forChild(routes)],
|
|
exports: [RouterModule],
|
|
})
|
|
export class UserDetailRoutingModule { }
|