Update entities-table.component.html

This commit is contained in:
Igor Kulikov 2024-01-24 18:14:07 +02:00 committed by GitHub
parent f77711ec5a
commit 81ec3d8d14
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -165,8 +165,8 @@
[matTooltip]="cellTooltip(entity, column, row)" [matTooltip]="cellTooltip(entity, column, row)"
matTooltipPosition="above" matTooltipPosition="above"
[ngStyle]="cellStyle(entity, column, row)"> [ngStyle]="cellStyle(entity, column, row)">
<ng-container *ngIf="column.type == 'link' && column.entityURL(entity) as detailsPageURl; else defaultContent"> <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> <a [routerLink]="detailsPageURL" [innerHTML]="cellContent(entity, column, row)" (click)="$event.stopPropagation();"></a>
</ng-container> </ng-container>
<ng-template #defaultContent> <ng-template #defaultContent>
<span [innerHTML]="cellContent(entity, column, row)"></span> <span [innerHTML]="cellContent(entity, column, row)"></span>