diff --git a/CHANGELOG.md b/CHANGELOG.md index aa036359ad..8041b8001d 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -7,6 +7,10 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0 ## Unreleased +### Added + +- Added a hint for the performance calculation type to the analysis page + ### Changed - Upgraded `@internationalized/number` from version `3.6.7` to `3.6.8` diff --git a/apps/client/src/app/pages/portfolio/analysis/analysis-page.component.ts b/apps/client/src/app/pages/portfolio/analysis/analysis-page.component.ts index 26fb711bb7..aa57e3d9c8 100644 --- a/apps/client/src/app/pages/portfolio/analysis/analysis-page.component.ts +++ b/apps/client/src/app/pages/portfolio/analysis/analysis-page.component.ts @@ -21,6 +21,7 @@ import type { GroupBy, ToggleOption } from '@ghostfolio/common/types'; +import { PerformanceCalculationType } from '@ghostfolio/common/types/performance-calculation-type.type'; import { translate } from '@ghostfolio/ui/i18n'; import { GfPremiumIndicatorComponent } from '@ghostfolio/ui/premium-indicator'; import { DataService } from '@ghostfolio/ui/services'; @@ -99,6 +100,7 @@ export class GfAnalysisPageComponent implements OnInit { { label: $localize`Yearly`, value: 'year' } ]; protected performance: PortfolioPerformance; + protected readonly PerformanceCalculationType = PerformanceCalculationType; protected performanceDataItems: HistoricalDataItem[]; protected performanceDataItemsInPercentage: HistoricalDataItem[]; protected readonly portfolioEvolutionDataLabel = $localize`Investment`; diff --git a/apps/client/src/app/pages/portfolio/analysis/analysis-page.html b/apps/client/src/app/pages/portfolio/analysis/analysis-page.html index 82751b8829..abf2de00ee 100644 --- a/apps/client/src/app/pages/portfolio/analysis/analysis-page.html +++ b/apps/client/src/app/pages/portfolio/analysis/analysis-page.html @@ -254,6 +254,16 @@
Net Performance + @if ( + user?.settings?.performanceCalculationType === + PerformanceCalculationType.ROAI + ) { + (ROAI) + }