UI: disabled originartor column details page links in alarms table for entities that can not have alarm
This commit is contained in:
parent
201c2a994e
commit
f77711ec5a
@ -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,
|
||||
|
||||
@ -165,8 +165,8 @@
|
||||
[matTooltip]="cellTooltip(entity, column, row)"
|
||||
matTooltipPosition="above"
|
||||
[ngStyle]="cellStyle(entity, column, row)">
|
||||
<ng-container *ngIf="column.type == 'link'; else defaultContent">
|
||||
<a [routerLink]="column.entityURL(entity)" [innerHTML]="cellContent(entity, column, row)" (click)="$event.stopPropagation();"></a>
|
||||
<ng-container *ngIf="column.type == 'link' && column.entityURL(entity) as detailsPageURl; else defaultContent">
|
||||
<a [routerLink]="detailsPageURl" [innerHTML]="cellContent(entity, column, row)" (click)="$event.stopPropagation();"></a>
|
||||
</ng-container>
|
||||
<ng-template #defaultContent>
|
||||
<span [innerHTML]="cellContent(entity, column, row)"></span>
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user