Thomas Kaul
11 months ago
committed by
GitHub
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
3 changed files with
33 additions and
6 deletions
-
CHANGELOG.md
-
apps/client/src/app/components/header/header.component.ts
-
libs/ui/src/lib/treemap-chart/treemap-chart.component.ts
|
|
@ -7,10 +7,18 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0 |
|
|
|
|
|
|
|
## Unreleased |
|
|
|
|
|
|
|
### Added |
|
|
|
|
|
|
|
- Added the name to the tooltip of the chart of the holdings tab on the home page (experimental) |
|
|
|
|
|
|
|
### Changed |
|
|
|
|
|
|
|
- Improved the portfolio unit tests to work with exported activity files |
|
|
|
|
|
|
|
### Fixed |
|
|
|
|
|
|
|
- Considered the language of the user settings on login with _Security Token_ |
|
|
|
|
|
|
|
## 2.114.0 - 2024-10-10 |
|
|
|
|
|
|
|
### Added |
|
|
|
|
|
@ -261,7 +261,18 @@ export class HeaderComponent implements OnChanges { |
|
|
|
this.settingsStorageService.getSetting(KEY_STAY_SIGNED_IN) === 'true' |
|
|
|
); |
|
|
|
|
|
|
|
this.router.navigate(['/']); |
|
|
|
this.userService |
|
|
|
.get() |
|
|
|
.pipe(takeUntil(this.unsubscribeSubject)) |
|
|
|
.subscribe((user) => { |
|
|
|
const userLanguage = user?.settings?.language; |
|
|
|
|
|
|
|
if (userLanguage && document.documentElement.lang !== userLanguage) { |
|
|
|
window.location.href = `../${userLanguage}`; |
|
|
|
} else { |
|
|
|
this.router.navigate(['/']); |
|
|
|
} |
|
|
|
}); |
|
|
|
} |
|
|
|
|
|
|
|
public ngOnDestroy() { |
|
|
|
|
|
@ -227,16 +227,24 @@ export class GfTreemapChartComponent |
|
|
|
}), |
|
|
|
callbacks: { |
|
|
|
label: (context) => { |
|
|
|
const name = context.raw._data.name; |
|
|
|
const symbol = context.raw._data.symbol; |
|
|
|
|
|
|
|
if (context.raw._data.valueInBaseCurrency !== null) { |
|
|
|
const value = <number>context.raw._data.valueInBaseCurrency; |
|
|
|
return `${value.toLocaleString(this.locale, { |
|
|
|
maximumFractionDigits: 2, |
|
|
|
minimumFractionDigits: 2 |
|
|
|
})} ${this.baseCurrency}`;
|
|
|
|
|
|
|
|
return [ |
|
|
|
`${name ?? symbol}`, |
|
|
|
`${value.toLocaleString(this.locale, { |
|
|
|
maximumFractionDigits: 2, |
|
|
|
minimumFractionDigits: 2 |
|
|
|
})} ${this.baseCurrency}` |
|
|
|
]; |
|
|
|
} else { |
|
|
|
const percentage = |
|
|
|
<number>context.raw._data.allocationInPercentage * 100; |
|
|
|
return `${percentage.toFixed(2)}%`; |
|
|
|
|
|
|
|
return [`${name ?? symbol}`, `${percentage.toFixed(2)}%`]; |
|
|
|
} |
|
|
|
}, |
|
|
|
title: () => { |
|
|
|