Browse Source

Address review: use locale input and add changelog entry

pull/6470/head
WinnCook 4 weeks ago
parent
commit
e5a77a3ea8
  1. 1
      CHANGELOG.md
  2. 2
      apps/client/src/app/components/admin-platform/admin-platform.component.html
  3. 2
      apps/client/src/app/components/admin-platform/admin-platform.component.ts

1
CHANGELOG.md

@ -9,6 +9,7 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
### Changed ### Changed
- Reused the value component in the platform component of the admin control panel
- Removed the deprecated `committedFunds` from the summary of the portfolio details endpoint - Removed the deprecated `committedFunds` from the summary of the portfolio details endpoint
- Upgraded `Nx` from version `22.4.5` to `22.5.3` - Upgraded `Nx` from version `22.4.5` to `22.5.3`

2
apps/client/src/app/components/admin-platform/admin-platform.component.html

@ -54,7 +54,7 @@
<td *matCellDef="let element" class="px-1 text-right" mat-cell> <td *matCellDef="let element" class="px-1 text-right" mat-cell>
<gf-value <gf-value
class="d-inline-block justify-content-end" class="d-inline-block justify-content-end"
[locale]="user?.settings?.locale" [locale]="locale"
[value]="element.accountCount" [value]="element.accountCount"
/> />
</td> </td>

2
apps/client/src/app/components/admin-platform/admin-platform.component.ts

@ -5,6 +5,7 @@ import { User } from '@ghostfolio/common/interfaces';
import { GfEntityLogoComponent } from '@ghostfolio/ui/entity-logo'; import { GfEntityLogoComponent } from '@ghostfolio/ui/entity-logo';
import { NotificationService } from '@ghostfolio/ui/notifications'; import { NotificationService } from '@ghostfolio/ui/notifications';
import { AdminService, DataService } from '@ghostfolio/ui/services'; import { AdminService, DataService } from '@ghostfolio/ui/services';
import { getLocale } from '@ghostfolio/common/helper';
import { GfValueComponent } from '@ghostfolio/ui/value'; import { GfValueComponent } from '@ghostfolio/ui/value';
import { import {
@ -57,6 +58,7 @@ export class GfAdminPlatformComponent implements OnDestroy, OnInit {
public dataSource = new MatTableDataSource<Platform>(); public dataSource = new MatTableDataSource<Platform>();
public deviceType: string; public deviceType: string;
public locale = getLocale();
public displayedColumns = ['name', 'url', 'accounts', 'actions']; public displayedColumns = ['name', 'url', 'accounts', 'actions'];
public platforms: Platform[]; public platforms: Platform[];
public user: User; public user: User;

Loading…
Cancel
Save