From d84e28e0588798b782fe3a4a3c786de35912b6f5 Mon Sep 17 00:00:00 2001 From: Ginza Hatemi Date: Fri, 13 Jun 2025 14:12:37 -0400 Subject: [PATCH] Feature/replace asset profile count with value component in admin settings (#4825) * Replace asset profile count with value component in admin settings * Update changelog --------- Co-authored-by: Thomas Kaul <4159106+dtslvr@users.noreply.github.com> --- CHANGELOG.md | 1 + .../components/admin-settings/admin-settings.component.html | 6 +++++- .../app/components/admin-settings/admin-settings.module.ts | 2 ++ 3 files changed, 8 insertions(+), 1 deletion(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index b6a97b660..bfff51a31 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 41069fb10..368b98da5 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 @@ Asset Profiles - {{ element.assetProfileCount }} + 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 0a798df11..228ddef00 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,