Browse Source
Feature/add value to positions table (#484)
* Add value column
* Update changelog
pull/485/head
Thomas Kaul
3 years ago
committed by
GitHub
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
3 changed files with
23 additions and
0 deletions
-
CHANGELOG.md
-
apps/client/src/app/components/positions-table/positions-table.component.html
-
apps/client/src/app/components/positions-table/positions-table.component.ts
|
@ -9,6 +9,7 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0 |
|
|
|
|
|
|
|
|
### Added |
|
|
### Added |
|
|
|
|
|
|
|
|
|
|
|
- Added the value column to the positions table |
|
|
- Added support for cryptocurrency _Algorand_ |
|
|
- Added support for cryptocurrency _Algorand_ |
|
|
|
|
|
|
|
|
### Changed |
|
|
### Changed |
|
|
|
@ -15,6 +15,27 @@ |
|
|
</td> |
|
|
</td> |
|
|
</ng-container> |
|
|
</ng-container> |
|
|
|
|
|
|
|
|
|
|
|
<ng-container matColumnDef="value"> |
|
|
|
|
|
<th |
|
|
|
|
|
*matHeaderCellDef |
|
|
|
|
|
class="d-none d-lg-table-cell justify-content-end px-1" |
|
|
|
|
|
i18n |
|
|
|
|
|
mat-header-cell |
|
|
|
|
|
mat-sort-header |
|
|
|
|
|
> |
|
|
|
|
|
Value |
|
|
|
|
|
</th> |
|
|
|
|
|
<td class="d-none d-lg-table-cell px-1" mat-cell *matCellDef="let element"> |
|
|
|
|
|
<div class="d-flex justify-content-end"> |
|
|
|
|
|
<gf-value |
|
|
|
|
|
[isCurrency]="true" |
|
|
|
|
|
[locale]="locale" |
|
|
|
|
|
[value]="isLoading ? undefined : element.value" |
|
|
|
|
|
></gf-value> |
|
|
|
|
|
</div> |
|
|
|
|
|
</td> |
|
|
|
|
|
</ng-container> |
|
|
|
|
|
|
|
|
<ng-container matColumnDef="performance"> |
|
|
<ng-container matColumnDef="performance"> |
|
|
<th |
|
|
<th |
|
|
*matHeaderCellDef |
|
|
*matHeaderCellDef |
|
|
|
@ -70,6 +70,7 @@ export class PositionsTableComponent implements OnChanges, OnDestroy, OnInit { |
|
|
public ngOnChanges() { |
|
|
public ngOnChanges() { |
|
|
this.displayedColumns = [ |
|
|
this.displayedColumns = [ |
|
|
'symbol', |
|
|
'symbol', |
|
|
|
|
|
'value', |
|
|
'performance', |
|
|
'performance', |
|
|
'allocationInvestment', |
|
|
'allocationInvestment', |
|
|
'allocationCurrent' |
|
|
'allocationCurrent' |
|
|