Skip to content

Open Source Wealth Management Software. Angular + NestJS + Prisma + Nx + TypeScript 🤍

Task/set performance in account detail dialog to experimental (#8286)

Thomas Kaulb540a3436ca9
diff --git a/CHANGELOG.md b/CHANGELOG.md
index b421ffc6da..0890657c4b 100644
--- a/CHANGELOG.md
+++ b/CHANGELOG.md
@@ -13,7 +13,7 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
### Changed
-- Extended the account detail dialog to include the change and the performance
+- Extended the account detail dialog to include the change and the performance (experimental)
- Improved the market price in the benchmark detail dialog by adding the currency and reducing the precision on mobile
- Improved the style of the close button in the dialog footer component
- Improved the style of the close button in the dialog header component
diff --git a/apps/client/src/app/components/account-detail-dialog/account-detail-dialog.html b/apps/client/src/app/components/account-detail-dialog/account-detail-dialog.html
index 5bd3c745ad..b6662c1a92 100644
--- a/apps/client/src/app/components/account-detail-dialog/account-detail-dialog.html
+++ b/apps/client/src/app/components/account-detail-dialog/account-detail-dialog.html
@@ -45,35 +45,6 @@
</ng-template>
<div class="container mt-3 p-0">
<div class="row w-100">
- <div class="col-6 mb-3">
- <gf-value
- i18n
- size="medium"
- [colorizeSign]="true"
- [isCurrency]="true"
- [isLoading]="isLoadingChart"
- [locale]="user?.settings?.locale"
- [precision]="netPerformanceWithCurrencyEffectPrecision"
- [unit]="user?.settings?.baseCurrency"
- [value]="netPerformanceWithCurrencyEffect"
- >Change</gf-value
- >
- </div>
- <div class="col-6 mb-3">
- <gf-value
- i18n
- size="medium"
- [colorizeSign]="true"
- [isLoading]="isLoadingChart"
- [isPercent]="true"
- [locale]="user?.settings?.locale"
- [precision]="
- netPerformancePercentageWithCurrencyEffectPrecision
- "
- [value]="netPerformancePercentageWithCurrencyEffect"
- >Performance</gf-value
- >
- </div>
<div class="col-6 mb-3">
<gf-value
i18n
@@ -100,6 +71,37 @@
>Equity</gf-value
>
</div>
+ @if (user?.settings?.isExperimentalFeatures) {
+ <div class="col-6 mb-3">
+ <gf-value
+ i18n
+ size="medium"
+ [colorizeSign]="true"
+ [isCurrency]="true"
+ [isLoading]="isLoadingChart"
+ [locale]="user?.settings?.locale"
+ [precision]="netPerformanceWithCurrencyEffectPrecision"
+ [unit]="user?.settings?.baseCurrency"
+ [value]="netPerformanceWithCurrencyEffect"
+ >Change</gf-value
+ >
+ </div>
+ <div class="col-6 mb-3">
+ <gf-value
+ i18n
+ size="medium"
+ [colorizeSign]="true"
+ [isLoading]="isLoadingChart"
+ [isPercent]="true"
+ [locale]="user?.settings?.locale"
+ [precision]="
+ netPerformancePercentageWithCurrencyEffectPrecision
+ "
+ [value]="netPerformancePercentageWithCurrencyEffect"
+ >Performance</gf-value
+ >
+ </div>
+ }
<div class="col-6 mb-3">
<gf-value
i18n