From d85c813e3c3d9e6615c0f828e08d5a23a5e755fd Mon Sep 17 00:00:00 2001 From: Max Peintner Date: Thu, 17 Jul 2025 13:39:01 +0200 Subject: [PATCH] rehaul havigation --- console/src/app/app-routing.module.ts | 2 +- .../src/app/modules/nav/nav.component.html | 47 ++++- .../src/app/modules/nav/nav.component.scss | 52 +++-- .../new-header/new-header.component.html | 4 +- .../settings-list.component.html | 14 +- .../src/app/modules/settings-list/settings.ts | 29 --- .../app/pages/actions/actions.component.html | 111 +---------- .../app/pages/actions/actions.component.scss | 187 +----------------- .../pages/actions/actions.component.spec.ts | 20 +- .../app/pages/actions/actions.component.ts | 180 ++--------------- .../src/app/pages/actions/actions.module.ts | 64 +----- console/src/app/pages/home/home.component.ts | 4 +- .../app/pages/instance/instance.component.ts | 6 - .../action-table/action-table.component.html | 0 .../action-table/action-table.component.scss | 0 .../action-table.component.spec.ts | 0 .../action-table/action-table.component.ts | 0 .../org-actions/actions-routing.module.ts | 17 ++ .../pages/org-actions/actions.component.html | 107 ++++++++++ .../pages/org-actions/actions.component.scss | 186 +++++++++++++++++ .../org-actions/actions.component.spec.ts | 24 +++ .../pages/org-actions/actions.component.ts | 180 +++++++++++++++++ .../app/pages/org-actions/actions.module.ts | 68 +++++++ .../add-action-dialog.component.html | 0 .../add-action-dialog.component.scss | 0 .../add-action-dialog.component.spec.ts | 0 .../add-action-dialog.component.ts | 0 .../add-flow-dialog.component.html | 0 .../add-flow-dialog.component.scss | 0 .../add-flow-dialog.component.spec.ts | 0 .../add-flow-dialog.component.ts | 0 console/src/component-themes.scss | 2 +- 32 files changed, 716 insertions(+), 588 deletions(-) rename console/src/app/pages/{actions => org-actions}/action-table/action-table.component.html (100%) rename console/src/app/pages/{actions => org-actions}/action-table/action-table.component.scss (100%) rename console/src/app/pages/{actions => org-actions}/action-table/action-table.component.spec.ts (100%) rename console/src/app/pages/{actions => org-actions}/action-table/action-table.component.ts (100%) create mode 100644 console/src/app/pages/org-actions/actions-routing.module.ts create mode 100644 console/src/app/pages/org-actions/actions.component.html create mode 100644 console/src/app/pages/org-actions/actions.component.scss create mode 100644 console/src/app/pages/org-actions/actions.component.spec.ts create mode 100644 console/src/app/pages/org-actions/actions.component.ts create mode 100644 console/src/app/pages/org-actions/actions.module.ts rename console/src/app/pages/{actions => org-actions}/add-action-dialog/add-action-dialog.component.html (100%) rename console/src/app/pages/{actions => org-actions}/add-action-dialog/add-action-dialog.component.scss (100%) rename console/src/app/pages/{actions => org-actions}/add-action-dialog/add-action-dialog.component.spec.ts (100%) rename console/src/app/pages/{actions => org-actions}/add-action-dialog/add-action-dialog.component.ts (100%) rename console/src/app/pages/{actions => org-actions}/add-flow-dialog/add-flow-dialog.component.html (100%) rename console/src/app/pages/{actions => org-actions}/add-flow-dialog/add-flow-dialog.component.scss (100%) rename console/src/app/pages/{actions => org-actions}/add-flow-dialog/add-flow-dialog.component.spec.ts (100%) rename console/src/app/pages/{actions => org-actions}/add-flow-dialog/add-flow-dialog.component.ts (100%) diff --git a/console/src/app/app-routing.module.ts b/console/src/app/app-routing.module.ts index 582f65d8af..f3682fa13a 100644 --- a/console/src/app/app-routing.module.ts +++ b/console/src/app/app-routing.module.ts @@ -75,7 +75,7 @@ const routes: Routes = [ loadChildren: () => import('./pages/actions/actions.module'), canActivate: [authGuard, roleGuard], data: { - roles: ['org.action.read', 'org.flow.read'], + roles: ['iam.read', 'iam.read'], }, }, { diff --git a/console/src/app/modules/nav/nav.component.html b/console/src/app/modules/nav/nav.component.html index f6079f9d92..83c108ca6d 100644 --- a/console/src/app/modules/nav/nav.component.html +++ b/console/src/app/modules/nav/nav.component.html @@ -5,13 +5,12 @@ *ngIf=" breadc[breadc.length - 1] && !breadc[breadc.length - 1].hideNav && - breadc[breadc.length - 1].type !== BreadcrumbType.AUTHUSER && - breadc[breadc.length - 1].type !== BreadcrumbType.INSTANCE + breadc[breadc.length - 1].type !== BreadcrumbType.AUTHUSER " [ngSwitch]="breadc[0].type" >