Browse Source

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>
pull/4910/head
Ginza Hatemi 3 weeks ago
committed by GitHub
parent
commit
d84e28e058
No known key found for this signature in database GPG Key ID: B5690EEEBB952194
  1. 1
      CHANGELOG.md
  2. 6
      apps/client/src/app/components/admin-settings/admin-settings.component.html
  3. 2
      apps/client/src/app/components/admin-settings/admin-settings.module.ts

1
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()`

6
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>

2
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,

Loading…
Cancel
Save