From 6d108cff58d04ede1456fb4d86838de6e4327cb5 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Henry=20T=C3=A4schner?= <129834483+HenryT-CG@users.noreply.github.com> Date: Tue, 26 Nov 2024 08:05:15 +0100 Subject: [PATCH] fix: manage iam is not available (#288) --- .../app-detail/app-detail.component.html | 22 ++++++++++++------- .../app-detail/app-detail.component.scss | 8 +++++++ src/assets/i18n/de.json | 4 ++++ src/assets/i18n/en.json | 4 ++++ 4 files changed, 30 insertions(+), 8 deletions(-) diff --git a/src/app/permission/app-detail/app-detail.component.html b/src/app/permission/app-detail/app-detail.component.html index a11d7b5..14324b4 100644 --- a/src/app/permission/app-detail/app-detail.component.html +++ b/src/app/permission/app-detail/app-detail.component.html @@ -148,11 +148,15 @@ pFrozenColumn id="apm_app_detail_permission_table_header_permissions" [attr.colspan]="(currentApp.isProduct ? 2 : 3) + (showPermissionTools ? 2 : 0)" - class="py-2 border-right-primary" - [ngClass]=" - myPermissions.includes('PERMISSION#EDIT') || myPermissions.includes('PERMISSION#DELETE') ? 'py-0' : 'py-1' - " + class="py-2 px-0 border-right-primary" > + +
+
{{ 'PERMISSION.LABEL' | translate }}: {{ permissions.length }}
+
+ {{ 'DIALOG.DETAIL.HEADER_PRODUCTS' | translate }}{{ currentApp.workspaceDetails?.products?.length }} +
+
- {{ 'PERMISSION.KEY' | translate }} - +
+ {{ 'PERMISSION.KEY' | translate }} + +
{{ 'DIALOG.DETAIL.FILTER.PRODUCT' | translate }}
-
+
-
+
tr:first-of-type > th { border-bottom: unset; } + .p-datatable-thead > tr > th:last-of-type, + .p-datatable-tbody > tr > td:last-of-type { + border-right: unset; + } } .button-letter-icon { padding: 1px 4px !important; diff --git a/src/assets/i18n/de.json b/src/assets/i18n/de.json index 1edcfa0..cbfc608 100644 --- a/src/assets/i18n/de.json +++ b/src/assets/i18n/de.json @@ -166,6 +166,7 @@ "DETAIL": { "HEADER_WORKSPACE": "Workspace: ", "HEADER_PRODUCT": "Applikation: ", + "HEADER_PRODUCTS": "Applikationen: ", "HEADER_APP": "App: ", "SUBHEADER_WORKSPACE": "Verwalten von Berechtigungen für den Workspace und den Apps der registrierten Applikationen", "SUBHEADER_PRODUCT": "Verwalten von Berechtigungen für die Applikation und deren Apps", @@ -362,6 +363,9 @@ "ASSIGNMENTS": "Es konnten keine Berechtigungen gefunden werden.", "WORKSPACE": "Es konnten keine Daten zu diesem Workspace gefunden werden" }, + "HTTP_STATUS_418": { + "ROLES": "Eine Rollenauswahl ist nicht möglich da IAM nicht zur Verfügung steht." + }, "HTTP_STATUS_500": { "APP": "Unbekanntes Problem beim Abrufen von Apps. Bitte versuchen sie es erneut.", "APPS": "Unbekanntes Problem beim Abrufen von Apps. Bitte versuchen sie es erneut.", diff --git a/src/assets/i18n/en.json b/src/assets/i18n/en.json index c2f3f0a..27589ec 100644 --- a/src/assets/i18n/en.json +++ b/src/assets/i18n/en.json @@ -166,6 +166,7 @@ "DETAIL": { "HEADER_WORKSPACE": "Workspace: ", "HEADER_PRODUCT": "Application: ", + "HEADER_PRODUCTS": "Applicationen: ", "HEADER_APP": "App: ", "SUBHEADER_WORKSPACE": "Managing Business Roles and Permissions of Workspace and all Apps of the registered Applications", "SUBHEADER_PRODUCT": "Managing Business Roles and Permissions of the Application including all of its Apps", @@ -362,6 +363,9 @@ "ASSIGNMENTS": "No Permissions could be found.", "WORKSPACE": "No data could be found for this Workspace." }, + "HTTP_STATUS_418": { + "ROLES": "A role selection is not possible because IAM is not available." + }, "HTTP_STATUS_500": { "APP": "Unknown problem retrieving Application data. Please try again.", "APPS": "Unknown problem retrieving Applications data. Please try again.",