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
parent
commit
2b988eeeec
No known key found for this signature in database GPG Key ID: B5690EEEBB952194
  1. 5
      CHANGELOG.md
  2. 2
      libs/ui/src/lib/holdings-table/holdings-table.component.html
  3. 16
      libs/ui/src/lib/services/data.service.ts

5
CHANGELOG.md

@ -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 - Improved the styling of buttons and input fields across various components
- Upgraded `prettier` from version `3.8.2` to `3.8.3` - 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 ## 3.0.0 - 2026-04-23
### Added ### Added

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

@ -26,7 +26,7 @@
<div class="text-truncate"> <div class="text-truncate">
{{ element.name }} {{ element.name }}
@if (element.name === element.symbol) { @if (element.name === element.symbol) {
<span>({{ element.assetSubClassLabel }})</span> <span>({{ element.assetProfile.assetSubClassLabel }})</span>
} }
</div> </div>
<div> <div>

16
libs/ui/src/lib/services/data.service.ts

@ -610,13 +610,11 @@ export class DataService {
map((response) => { map((response) => {
if (response.holdings) { if (response.holdings) {
for (const symbol of Object.keys(response.holdings)) { for (const symbol of Object.keys(response.holdings)) {
response.holdings[symbol].assetClassLabel = translate( response.holdings[symbol].assetProfile.assetClassLabel =
response.holdings[symbol].assetClass translate(response.holdings[symbol].assetProfile.assetClass);
);
response.holdings[symbol].assetSubClassLabel = translate( response.holdings[symbol].assetProfile.assetSubClassLabel =
response.holdings[symbol].assetSubClass translate(response.holdings[symbol].assetProfile.assetSubClass);
);
response.holdings[symbol].dateOfFirstActivity = response.holdings[ response.holdings[symbol].dateOfFirstActivity = response.holdings[
symbol symbol
@ -699,6 +697,12 @@ export class DataService {
map((response) => { map((response) => {
if (response.holdings) { if (response.holdings) {
for (const symbol of Object.keys(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 = isNumber(
response.holdings[symbol].valueInBaseCurrency response.holdings[symbol].valueInBaseCurrency
) )

Loading…
Cancel
Save