Skip to content

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

Feature/replace asset profile count with value component in admin settings (#4825)

Ginza Hatemid84e28e05887
diff --git a/CHANGELOG.md b/CHANGELOG.md
index b6a97b660c..bfff51a316 100644
--- a/CHANGELOG.md
+++ b/CHANGELOG.md
@@ -14,6 +14,7 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
### Changed
- Improved the style of the assistant
+- Reused the value component in the data providers management of the admin control panel
- Migrated the `@ghostfolio/ui/assistant` component to control flow
- Migrated the `@ghostfolio/ui/value` component to control flow
- Migrated the `HtmlTemplateMiddleware` to use `@Injectable()`
diff --git a/apps/client/src/app/components/admin-settings/admin-settings.component.html b/apps/client/src/app/components/admin-settings/admin-settings.component.html
index 41069fb101..368b98da57 100644
--- a/apps/client/src/app/components/admin-settings/admin-settings.component.html
+++ b/apps/client/src/app/components/admin-settings/admin-settings.component.html
@@ -52,7 +52,11 @@
<ng-container i18n>Asset Profiles</ng-container>
</th>
<td *matCellDef="let element" class="px-1 py-2 text-right" mat-cell>
- {{ element.assetProfileCount }}
+ <gf-value
+ class="d-inline-block justify-content-end"
+ [locale]="user?.settings?.locale"
+ [value]="element.assetProfileCount"
+ />
</td>
</ng-container>
diff --git a/apps/client/src/app/components/admin-settings/admin-settings.module.ts b/apps/client/src/app/components/admin-settings/admin-settings.module.ts
index 0a798df117..228ddef009 100644
--- a/apps/client/src/app/components/admin-settings/admin-settings.module.ts
+++ b/apps/client/src/app/components/admin-settings/admin-settings.module.ts
@@ -2,6 +2,7 @@ import { GfAdminPlatformModule } from '@ghostfolio/client/components/admin-platf
import { GfAdminTagModule } from '@ghostfolio/client/components/admin-tag/admin-tag.module';
import { GfEntityLogoComponent } from '@ghostfolio/ui/entity-logo';
import { GfPremiumIndicatorComponent } from '@ghostfolio/ui/premium-indicator';
+import { GfValueComponent } from '@ghostfolio/ui/value';
import { CommonModule } from '@angular/common';
import { CUSTOM_ELEMENTS_SCHEMA, NgModule } from '@angular/core';
@@ -22,6 +23,7 @@ import { AdminSettingsComponent } from './admin-settings.component';
GfAdminTagModule,
GfEntityLogoComponent,
GfPremiumIndicatorComponent,
+ GfValueComponent,
MatButtonModule,
MatMenuModule,
MatProgressBarModule,