diff --git a/CHANGELOG.md b/CHANGELOG.md index 24149c9b6..923c264a3 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -15,6 +15,7 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0 ### Changed - Optimized the page titles in the header for mobile +- Extended the asset profile details dialog in the admin control panel ## 1.222.0 - 2022-12-29 diff --git a/apps/client/src/app/components/admin-market-data-detail/admin-market-data-detail.component.ts b/apps/client/src/app/components/admin-market-data-detail/admin-market-data-detail.component.ts index b448e4b5a..767891a2a 100644 --- a/apps/client/src/app/components/admin-market-data-detail/admin-market-data-detail.component.ts +++ b/apps/client/src/app/components/admin-market-data-detail/admin-market-data-detail.component.ts @@ -20,7 +20,6 @@ import { addDays, format, isBefore, - isDate, isSameDay, isToday, isValid, @@ -31,6 +30,7 @@ import { last } from 'lodash'; import { DeviceDetectorService } from 'ngx-device-detector'; import { Subject, takeUntil } from 'rxjs'; +import { MarketDataDetailDialogParams } from './market-data-detail-dialog/interfaces/interfaces'; import { MarketDataDetailDialog } from './market-data-detail-dialog/market-data-detail-dialog.component'; @Component({ @@ -40,6 +40,7 @@ import { MarketDataDetailDialog } from './market-data-detail-dialog/market-data- templateUrl: './admin-market-data-detail.component.html' }) export class AdminMarketDataDetailComponent implements OnChanges, OnInit { + @Input() currency: string; @Input() dataSource: DataSource; @Input() dateOfFirstActivity: string; @Input() locale = getLocale(); @@ -161,9 +162,10 @@ export class AdminMarketDataDetailComponent implements OnChanges, OnInit { } const dialogRef = this.dialog.open(MarketDataDetailDialog, { - data: { + data: { date, marketPrice, + currency: this.currency, dataSource: this.dataSource, symbol: this.symbol, user: this.user diff --git a/apps/client/src/app/components/admin-market-data-detail/market-data-detail-dialog/interfaces/interfaces.ts b/apps/client/src/app/components/admin-market-data-detail/market-data-detail-dialog/interfaces/interfaces.ts index 81360878b..23203a39e 100644 --- a/apps/client/src/app/components/admin-market-data-detail/market-data-detail-dialog/interfaces/interfaces.ts +++ b/apps/client/src/app/components/admin-market-data-detail/market-data-detail-dialog/interfaces/interfaces.ts @@ -2,6 +2,7 @@ import { User } from '@ghostfolio/common/interfaces'; import { DataSource } from '@prisma/client'; export interface MarketDataDetailDialogParams { + currency: string; dataSource: DataSource; date: Date; marketPrice: number; diff --git a/apps/client/src/app/components/admin-market-data-detail/market-data-detail-dialog/market-data-detail-dialog.html b/apps/client/src/app/components/admin-market-data-detail/market-data-detail-dialog/market-data-detail-dialog.html index 84dae467b..230133de7 100644 --- a/apps/client/src/app/components/admin-market-data-detail/market-data-detail-dialog/market-data-detail-dialog.html +++ b/apps/client/src/app/components/admin-market-data-detail/market-data-detail-dialog/market-data-detail-dialog.html @@ -1,5 +1,5 @@
-

Details for {{ data.symbol }}

+

Details for {{ data.symbol }}

@@ -30,6 +30,7 @@ type="number" [(ngModel)]="data.marketPrice" /> + {{ data.currency }}