Browse Source

Integrate last market price in admin market data

pull/3752/head
Thomas Kaul 11 months ago
parent
commit
524d47bb53
  1. 1
      apps/client/src/app/components/admin-market-data/admin-market-data.component.ts
  2. 15
      apps/client/src/app/components/admin-market-data/admin-market-data.html
  3. 2
      apps/client/src/app/components/admin-market-data/admin-market-data.module.ts

1
apps/client/src/app/components/admin-market-data/admin-market-data.component.ts

@ -142,6 +142,7 @@ export class AdminMarketDataComponent
'dataSource', 'dataSource',
'assetClass', 'assetClass',
'assetSubClass', 'assetSubClass',
'lastMarketPrice',
'date', 'date',
'activitiesCount', 'activitiesCount',
'marketDataItemCount', 'marketDataItemCount',

15
apps/client/src/app/components/admin-market-data/admin-market-data.html

@ -99,6 +99,21 @@
</td> </td>
</ng-container> </ng-container>
<ng-container matColumnDef="lastMarketPrice">
<th *matHeaderCellDef class="px-1" mat-header-cell>
<ng-container i18n>Market Price</ng-container>
</th>
<td *matCellDef="let element" class="px-1" mat-cell>
<div class="d-flex justify-content-end">
<gf-value
[isCurrency]="true"
[locale]="user?.settings?.locale"
[value]="element.lastMarketPrice ?? ''"
/>
</div>
</td>
</ng-container>
<ng-container matColumnDef="date"> <ng-container matColumnDef="date">
<th *matHeaderCellDef class="px-1" mat-header-cell> <th *matHeaderCellDef class="px-1" mat-header-cell>
<ng-container i18n>First Activity</ng-container> <ng-container i18n>First Activity</ng-container>

2
apps/client/src/app/components/admin-market-data/admin-market-data.module.ts

@ -1,6 +1,7 @@
import { GfSymbolModule } from '@ghostfolio/client/pipes/symbol/symbol.module'; import { GfSymbolModule } from '@ghostfolio/client/pipes/symbol/symbol.module';
import { GfActivitiesFilterComponent } from '@ghostfolio/ui/activities-filter'; import { GfActivitiesFilterComponent } from '@ghostfolio/ui/activities-filter';
import { GfPremiumIndicatorComponent } from '@ghostfolio/ui/premium-indicator'; import { GfPremiumIndicatorComponent } from '@ghostfolio/ui/premium-indicator';
import { GfValueComponent } from '@ghostfolio/ui/value';
import { CommonModule } from '@angular/common'; import { CommonModule } from '@angular/common';
import { CUSTOM_ELEMENTS_SCHEMA, NgModule } from '@angular/core'; import { CUSTOM_ELEMENTS_SCHEMA, NgModule } from '@angular/core';
@ -27,6 +28,7 @@ import { GfCreateAssetProfileDialogModule } from './create-asset-profile-dialog/
GfCreateAssetProfileDialogModule, GfCreateAssetProfileDialogModule,
GfPremiumIndicatorComponent, GfPremiumIndicatorComponent,
GfSymbolModule, GfSymbolModule,
GfValueComponent,
MatButtonModule, MatButtonModule,
MatCheckboxModule, MatCheckboxModule,
MatMenuModule, MatMenuModule,

Loading…
Cancel
Save