From f77711ec5a432a7001a0d2c9a49e5477bfa9252a Mon Sep 17 00:00:00 2001 From: rusikv Date: Fri, 12 Jan 2024 16:23:54 +0200 Subject: [PATCH] UI: disabled originartor column details page links in alarms table for entities that can not have alarm --- ui-ngx/src/app/core/utils.ts | 2 +- .../home/components/entity/entities-table.component.html | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/ui-ngx/src/app/core/utils.ts b/ui-ngx/src/app/core/utils.ts index 888a9b9660..90dff0f376 100644 --- a/ui-ngx/src/app/core/utils.ts +++ b/ui-ngx/src/app/core/utils.ts @@ -711,7 +711,7 @@ export function randomAlphanumeric(length: number): string { } export function getEntityDetailsPageURL(id: string, entityType: EntityType): string { - return `${baseDetailsPageByEntityType.get(entityType)}/${id}`; + return baseDetailsPageByEntityType.has(entityType) ? `${baseDetailsPageByEntityType.get(entityType)}/${id}` : ''; } export function parseHttpErrorMessage(errorResponse: HttpErrorResponse, diff --git a/ui-ngx/src/app/modules/home/components/entity/entities-table.component.html b/ui-ngx/src/app/modules/home/components/entity/entities-table.component.html index 32a9ce053c..8c4ce9eb2c 100644 --- a/ui-ngx/src/app/modules/home/components/entity/entities-table.component.html +++ b/ui-ngx/src/app/modules/home/components/entity/entities-table.component.html @@ -165,8 +165,8 @@ [matTooltip]="cellTooltip(entity, column, row)" matTooltipPosition="above" [ngStyle]="cellStyle(entity, column, row)"> - - + +