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

pull/1491/head
Yash Solanki 2 years ago committed by GitHub
parent 5209f82cca
commit e4c44faee4
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

@ -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>

Loading…
Cancel
Save