Merge pull request #14038 from mtsymbarov-del/fix/devices-relations-table

Fixed empty link on the entity details menu
This commit is contained in:
Igor Kulikov 2025-09-25 17:00:40 +03:00 committed by GitHub
commit beb1797041
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -117,9 +117,13 @@
<ng-container *ngIf="direction === directions.FROM" matColumnDef="toName">
<mat-header-cell *matHeaderCellDef mat-sort-header style="width: 33%"> {{ 'relation.to-entity-name' | translate }} </mat-header-cell>
<mat-cell *matCellDef="let relation">
@if(relation.entityURL){
<a class="link" [routerLink]="relation.entityURL">
{{ relation.toName | customTranslate }}
</a>
} @else {
{{ relation.toName | customTranslate }}
}
</mat-cell>
</ng-container>
<ng-container *ngIf="direction === directions.TO" matColumnDef="fromEntityTypeName">