mirror of
https://github.com/andwati/zitadel.git
synced 2026-11-06 14:22:15 +00:00
* verification dialog, service * i18n, verification dialog * file saver * savefile * verify trigger * delete project, i18n * org create dialog * org-create-self * stylelint * fix signout redirect * rm unused dialog component, import * project i18n de * regexp roles * use regex to check permissions * border radius * change validation flow * update org member * iam member change * lint * rm unused css * Update console/src/assets/i18n/de.json Co-authored-by: Fabi <[email protected]> * Update console/src/assets/i18n/de.json Co-authored-by: Fabi <[email protected]> * change guard Co-authored-by: Fabi <[email protected]>
55 lines
1.7 KiB
TypeScript
55 lines
1.7 KiB
TypeScript
import { NgModule } from '@angular/core';
|
|
import { RouterModule, Routes } from '@angular/router';
|
|
import { RoleGuard } from 'src/app/guards/role.guard';
|
|
|
|
import { OrgCreateComponent } from './org-create/org-create.component';
|
|
import { OrgDetailComponent } from './org-detail/org-detail.component';
|
|
import { OrgGridComponent } from './org-grid/org-grid.component';
|
|
import { PasswordPolicyComponent, PolicyComponentAction } from './password-policy/password-policy.component';
|
|
|
|
const routes: Routes = [
|
|
{
|
|
path: 'create',
|
|
component: OrgCreateComponent,
|
|
canActivate: [RoleGuard],
|
|
data: {
|
|
roles: ['(org.create)?(iam.write)?'],
|
|
},
|
|
loadChildren: () => import('./org-create/org-create.module').then(m => m.OrgCreateModule),
|
|
},
|
|
{
|
|
path: 'policy/:policytype/create',
|
|
component: PasswordPolicyComponent,
|
|
data: {
|
|
action: PolicyComponentAction.CREATE,
|
|
},
|
|
},
|
|
/// TODO: add roleguard for iam policy
|
|
{
|
|
path: 'policy/:policytype',
|
|
component: PasswordPolicyComponent,
|
|
data: {
|
|
action: PolicyComponentAction.MODIFY,
|
|
},
|
|
loadChildren: () => import('./password-policy/password-policy.module').then(m => m.PasswordPolicyModule),
|
|
},
|
|
{
|
|
path: 'members',
|
|
loadChildren: () => import('./org-members/org-members.module').then(m => m.OrgMembersModule),
|
|
},
|
|
{
|
|
path: '',
|
|
component: OrgDetailComponent,
|
|
},
|
|
{
|
|
path: 'overview',
|
|
component: OrgGridComponent,
|
|
},
|
|
];
|
|
|
|
@NgModule({
|
|
imports: [RouterModule.forChild(routes)],
|
|
exports: [RouterModule],
|
|
})
|
|
export class OrgsRoutingModule { }
|