Browse Source

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

* Set performance to experimental

* Update changelog
pull/8287/head
Thomas Kaul 5 days ago
committed by GitHub
parent
commit
b540a3436c
No known key found for this signature in database GPG Key ID: B5690EEEBB952194
  1. 2
      CHANGELOG.md
  2. 52
      apps/client/src/app/components/account-detail-dialog/account-detail-dialog.html

2
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

52
apps/client/src/app/components/account-detail-dialog/account-detail-dialog.html

@ -49,57 +49,59 @@
<gf-value
i18n
size="medium"
[colorizeSign]="true"
[isCurrency]="true"
[isLoading]="isLoadingChart"
[isLoading]="isLoading"
[locale]="user?.settings?.locale"
[precision]="netPerformanceWithCurrencyEffectPrecision"
[unit]="user?.settings?.baseCurrency"
[value]="netPerformanceWithCurrencyEffect"
>Change</gf-value
[precision]="balancePrecision"
[unit]="currency"
[value]="balance"
>Cash Balance</gf-value
>
</div>
<div class="col-6 mb-3">
<gf-value
i18n
size="medium"
[colorizeSign]="true"
[isLoading]="isLoadingChart"
[isPercent]="true"
[isCurrency]="true"
[isLoading]="isLoading"
[locale]="user?.settings?.locale"
[precision]="
netPerformancePercentageWithCurrencyEffectPrecision
"
[value]="netPerformancePercentageWithCurrencyEffect"
>Performance</gf-value
[precision]="equityPrecision"
[unit]="currency"
[value]="equity"
>Equity</gf-value
>
</div>
@if (user?.settings?.isExperimentalFeatures) {
<div class="col-6 mb-3">
<gf-value
i18n
size="medium"
[colorizeSign]="true"
[isCurrency]="true"
[isLoading]="isLoading"
[isLoading]="isLoadingChart"
[locale]="user?.settings?.locale"
[precision]="balancePrecision"
[unit]="currency"
[value]="balance"
>Cash Balance</gf-value
[precision]="netPerformanceWithCurrencyEffectPrecision"
[unit]="user?.settings?.baseCurrency"
[value]="netPerformanceWithCurrencyEffect"
>Change</gf-value
>
</div>
<div class="col-6 mb-3">
<gf-value
i18n
size="medium"
[isCurrency]="true"
[isLoading]="isLoading"
[colorizeSign]="true"
[isLoading]="isLoadingChart"
[isPercent]="true"
[locale]="user?.settings?.locale"
[precision]="equityPrecision"
[unit]="currency"
[value]="equity"
>Equity</gf-value
[precision]="
netPerformancePercentageWithCurrencyEffectPrecision
"
[value]="netPerformancePercentageWithCurrencyEffect"
>Performance</gf-value
>
</div>
}
<div class="col-6 mb-3">
<gf-value
i18n

Loading…
Cancel
Save