Browse Source

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

Fixed empty link on the entity details menu
pull/13807/merge
Igor Kulikov 1 year ago
committed by GitHub
parent
commit
beb1797041
No known key found for this signature in database GPG Key ID: B5690EEEBB952194
  1. 10
      ui-ngx/src/app/modules/home/components/relation/relation-table.component.html

10
ui-ngx/src/app/modules/home/components/relation/relation-table.component.html

@ -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">
<a class="link" [routerLink]="relation.entityURL">
{{ relation.toName | customTranslate }}
</a>
@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">

Loading…
Cancel
Save