mirror of
https://github.com/andwati/zitadel.git
synced 2026-12-01 16:38:52 +00:00
* routes, move grid to list comopnent * rename app list component, move to project sub * add owned-project-detail child module * seperate pipes * set password validators only if needed * create org initialize without pwd * no caps * self xss message * fix user table * fix project member paginator * fix project members pagination, user grant pag * move project grants, fix imports * fix owned project detail imports * use pipe and directives * ng content bindings, rem custom schemas * i18n, fix error toast parameter * toast i18n * side background * fix: sequence, add timestamp * audit * fix metanav background * org domain label * cleanup policy component * shorten user grant roles, mk cols visible as bind * move user components, show otp only if available * preload modules * fix password change * fix org create buttons * class css
44 lines
1.2 KiB
TypeScript
44 lines
1.2 KiB
TypeScript
import { NgModule } from '@angular/core';
|
|
import { RouterModule, Routes } from '@angular/router';
|
|
import { AuthGuard } from 'src/app/guards/auth.guard';
|
|
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,
|
|
canActivate: [AuthGuard],
|
|
},
|
|
{
|
|
path: 'me/password',
|
|
component: PasswordComponent,
|
|
canActivate: [AuthGuard],
|
|
},
|
|
{
|
|
path: ':id',
|
|
component: UserDetailComponent,
|
|
canActivate: [AuthGuard, RoleGuard],
|
|
data: {
|
|
roles: ['user.read'],
|
|
},
|
|
},
|
|
{
|
|
path: ':id/password',
|
|
component: PasswordComponent,
|
|
canActivate: [AuthGuard, RoleGuard],
|
|
data: {
|
|
roles: ['user.write'],
|
|
},
|
|
},
|
|
];
|
|
|
|
@NgModule({
|
|
imports: [RouterModule.forChild(routes)],
|
|
exports: [RouterModule],
|
|
})
|
|
export class UserDetailRoutingModule { }
|