fix(console): org create missing module, layout (#2870)

* fix: org create module

* rm comment
This commit is contained in:
Max Peintner
2021-12-20 10:56:03 +01:00
committed by GitHub
parent 278a278a5b
commit db355facee
8 changed files with 226 additions and 223 deletions
+9 -9
View File
@@ -63,6 +63,15 @@ const routes: Routes = [
roles: ['iam.read', 'iam.write'],
},
},
{
path: 'org/create',
component: OrgCreateComponent,
canActivate: [AuthGuard, RoleGuard],
data: {
roles: ['(org.create)?(iam.write)?'],
},
loadChildren: () => import('./pages/org-create/org-create.module').then((m) => m.OrgCreateModule),
},
{
path: 'org',
loadChildren: () => import('./pages/orgs/orgs.module').then((m) => m.OrgsModule),
@@ -71,15 +80,6 @@ const routes: Routes = [
roles: ['org.read'],
},
},
{
path: 'org/create',
component: OrgCreateComponent,
canActivate: [RoleGuard],
data: {
roles: ['(org.create)?(iam.write)?'],
},
loadChildren: () => import('./pages/org-create/org-create.module').then((m) => m.OrgCreateModule),
},
{
path: 'actions',
loadChildren: () => import('./pages/actions/actions.module').then((m) => m.ActionsModule),