Browse Source
Task/enable performance calculation type (#8207)
Enable performance calculation type
pull/8208/head
Thomas Kaul
1 day ago
committed by
GitHub
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
2 changed files with
1 additions and
7 deletions
-
apps/api/src/app/user/user.controller.ts
-
apps/client/src/app/components/user-account-settings/user-account-settings.html
|
|
@ -242,12 +242,6 @@ export class UserController { |
|
|
|
|
|
|
|
|
if (!userSettings.isExperimentalFeatures) { |
|
|
if (!userSettings.isExperimentalFeatures) { |
|
|
delete userSettings.isGhostfolioAiEnabled; |
|
|
delete userSettings.isGhostfolioAiEnabled; |
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
if ( |
|
|
|
|
|
!userSettings.isExperimentalFeatures || |
|
|
|
|
|
this.request.user.subscription |
|
|
|
|
|
) { |
|
|
|
|
|
delete userSettings.performanceCalculationType; |
|
|
delete userSettings.performanceCalculationType; |
|
|
} |
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
@ -30,7 +30,7 @@ |
|
|
</mat-form-field> |
|
|
</mat-form-field> |
|
|
</div> |
|
|
</div> |
|
|
</div> |
|
|
</div> |
|
|
@if (user?.settings?.isExperimentalFeatures && !user?.subscription) { |
|
|
@if (user?.settings?.isExperimentalFeatures) { |
|
|
<div class="d-flex mb-2"> |
|
|
<div class="d-flex mb-2"> |
|
|
<div class="align-items-center d-flex pe-1 pt-1 w-50"> |
|
|
<div class="align-items-center d-flex pe-1 pt-1 w-50"> |
|
|
<ng-container i18n>Performance Calculation</ng-container> |
|
|
<ng-container i18n>Performance Calculation</ng-container> |
|
|
|