Fix sorting by performance field in positions table (#1489)

This commit is contained in:
Yash Solanki
2022-12-03 22:55:53 +05:30
committed by GitHub
parent 5209f82cca
commit e4c44faee4

View File

@@ -1,9 +1,9 @@
<table <table
class="gf-table w-100" class="gf-table w-100"
mat-table
matSort matSort
matSortActive="allocationCurrent" matSortActive="allocationCurrent"
matSortDirection="desc" matSortDirection="desc"
mat-table
[dataSource]="dataSource" [dataSource]="dataSource"
> >
<ng-container matColumnDef="icon"> <ng-container matColumnDef="icon">
@@ -51,7 +51,7 @@
> >
<ng-container i18n>Value</ng-container> <ng-container i18n>Value</ng-container>
</th> </th>
<td class="d-none d-lg-table-cell px-1" mat-cell *matCellDef="let element"> <td *matCellDef="let element" class="d-none d-lg-table-cell px-1" mat-cell>
<div class="d-flex justify-content-end"> <div class="d-flex justify-content-end">
<gf-value <gf-value
[isCurrency]="true" [isCurrency]="true"
@@ -87,6 +87,7 @@
*matHeaderCellDef *matHeaderCellDef
class="d-none d-lg-table-cell px-1 text-right" class="d-none d-lg-table-cell px-1 text-right"
mat-header-cell mat-header-cell
mat-sort-header="netPerformancePercent"
> >
<ng-container i18n>Performance</ng-container> <ng-container i18n>Performance</ng-container>
</th> </th>