Merge pull request #14038 from mtsymbarov-del/fix/devices-relations-table
Fixed empty link on the entity details menu
This commit is contained in:
commit
beb1797041
@ -117,9 +117,13 @@
|
|||||||
<ng-container *ngIf="direction === directions.FROM" matColumnDef="toName">
|
<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-header-cell *matHeaderCellDef mat-sort-header style="width: 33%"> {{ 'relation.to-entity-name' | translate }} </mat-header-cell>
|
||||||
<mat-cell *matCellDef="let relation">
|
<mat-cell *matCellDef="let relation">
|
||||||
|
@if(relation.entityURL){
|
||||||
<a class="link" [routerLink]="relation.entityURL">
|
<a class="link" [routerLink]="relation.entityURL">
|
||||||
{{ relation.toName | customTranslate }}
|
{{ relation.toName | customTranslate }}
|
||||||
</a>
|
</a>
|
||||||
|
} @else {
|
||||||
|
{{ relation.toName | customTranslate }}
|
||||||
|
}
|
||||||
</mat-cell>
|
</mat-cell>
|
||||||
</ng-container>
|
</ng-container>
|
||||||
<ng-container *ngIf="direction === directions.TO" matColumnDef="fromEntityTypeName">
|
<ng-container *ngIf="direction === directions.TO" matColumnDef="fromEntityTypeName">
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user