Browse Source

Fix missing value

pull/2182/head
Thomas 2 years ago
parent
commit
a7e716811e
  1. 4
      libs/ui/src/lib/holdings-table/holdings-table.component.html
  2. 2
      libs/ui/src/lib/holdings-table/holdings-table.component.ts

4
libs/ui/src/lib/holdings-table/holdings-table.component.html

@ -61,7 +61,7 @@
</td> </td>
</ng-container> </ng-container>
<ng-container matColumnDef="value"> <ng-container matColumnDef="valueInBaseCurrency">
<th <th
*matHeaderCellDef *matHeaderCellDef
class="d-none d-lg-table-cell justify-content-end px-1" class="d-none d-lg-table-cell justify-content-end px-1"
@ -79,7 +79,7 @@
<gf-value <gf-value
[isCurrency]="true" [isCurrency]="true"
[locale]="locale" [locale]="locale"
[value]="isLoading ? undefined : element.value" [value]="isLoading ? undefined : element.valueInBaseCurrency"
></gf-value> ></gf-value>
</div> </div>
</td> </td>

2
libs/ui/src/lib/holdings-table/holdings-table.component.ts

@ -55,7 +55,7 @@ export class HoldingsTableComponent implements OnChanges, OnDestroy, OnInit {
this.displayedColumns = ['icon', 'nameWithSymbol', 'dateOfFirstActivity']; this.displayedColumns = ['icon', 'nameWithSymbol', 'dateOfFirstActivity'];
if (this.hasPermissionToShowValues) { if (this.hasPermissionToShowValues) {
this.displayedColumns.push('value'); this.displayedColumns.push('valueInBaseCurrency');
} }
this.displayedColumns.push('allocationInPercentage'); this.displayedColumns.push('allocationInPercentage');

Loading…
Cancel
Save