Browse Source
Bugfix/fix cash label in holdings table (#6783)
* Fix cash label (assetSubClassLabel)
* Update changelog
pull/6785/head
Thomas Kaul
6 days ago
committed by
GitHub
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
3 changed files with
16 additions and
7 deletions
-
CHANGELOG.md
-
libs/ui/src/lib/holdings-table/holdings-table.component.html
-
libs/ui/src/lib/services/data.service.ts
|
|
|
@ -14,6 +14,11 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0 |
|
|
|
- Improved the styling of buttons and input fields across various components |
|
|
|
- Upgraded `prettier` from version `3.8.2` to `3.8.3` |
|
|
|
|
|
|
|
### Fixed |
|
|
|
|
|
|
|
- Fixed the cash label in the holdings table of the portfolio holdings page |
|
|
|
- Fixed the cash label in the holdings table of the public page |
|
|
|
|
|
|
|
## 3.0.0 - 2026-04-23 |
|
|
|
|
|
|
|
### Added |
|
|
|
|
|
|
|
@ -26,7 +26,7 @@ |
|
|
|
<div class="text-truncate"> |
|
|
|
{{ element.name }} |
|
|
|
@if (element.name === element.symbol) { |
|
|
|
<span>({{ element.assetSubClassLabel }})</span> |
|
|
|
<span>({{ element.assetProfile.assetSubClassLabel }})</span> |
|
|
|
} |
|
|
|
</div> |
|
|
|
<div> |
|
|
|
|
|
|
|
@ -610,13 +610,11 @@ export class DataService { |
|
|
|
map((response) => { |
|
|
|
if (response.holdings) { |
|
|
|
for (const symbol of Object.keys(response.holdings)) { |
|
|
|
response.holdings[symbol].assetClassLabel = translate( |
|
|
|
response.holdings[symbol].assetClass |
|
|
|
); |
|
|
|
response.holdings[symbol].assetProfile.assetClassLabel = |
|
|
|
translate(response.holdings[symbol].assetProfile.assetClass); |
|
|
|
|
|
|
|
response.holdings[symbol].assetSubClassLabel = translate( |
|
|
|
response.holdings[symbol].assetSubClass |
|
|
|
); |
|
|
|
response.holdings[symbol].assetProfile.assetSubClassLabel = |
|
|
|
translate(response.holdings[symbol].assetProfile.assetSubClass); |
|
|
|
|
|
|
|
response.holdings[symbol].dateOfFirstActivity = response.holdings[ |
|
|
|
symbol |
|
|
|
@ -699,6 +697,12 @@ export class DataService { |
|
|
|
map((response) => { |
|
|
|
if (response.holdings) { |
|
|
|
for (const symbol of Object.keys(response.holdings)) { |
|
|
|
response.holdings[symbol].assetProfile.assetClassLabel = |
|
|
|
translate(response.holdings[symbol].assetProfile.assetClass); |
|
|
|
|
|
|
|
response.holdings[symbol].assetProfile.assetSubClassLabel = |
|
|
|
translate(response.holdings[symbol].assetProfile.assetSubClass); |
|
|
|
|
|
|
|
response.holdings[symbol].valueInBaseCurrency = isNumber( |
|
|
|
response.holdings[symbol].valueInBaseCurrency |
|
|
|
) |
|
|
|
|