Browse Source

Task/remove unused user in historical market data editor (#8243)

Remove unused user
pull/8158/merge
Thomas Kaul 4 days ago
committed by GitHub
parent
commit
6157d2bd53
No known key found for this signature in database GPG Key ID: B5690EEEBB952194
  1. 1
      apps/client/src/app/components/admin-market-data/asset-profile-dialog/asset-profile-dialog.html
  2. 1
      apps/client/src/app/components/holding-detail-dialog/holding-detail-dialog.html
  3. 2
      libs/ui/src/lib/historical-market-data-editor/historical-market-data-editor-dialog/interfaces/interfaces.ts
  4. 6
      libs/ui/src/lib/historical-market-data-editor/historical-market-data-editor.component.ts

1
apps/client/src/app/components/admin-market-data/asset-profile-dialog/asset-profile-dialog.html

@ -505,7 +505,6 @@
[locale]="data.locale" [locale]="data.locale"
[marketData]="marketDataItems" [marketData]="marketDataItems"
[symbol]="data.symbol" [symbol]="data.symbol"
[user]="user"
(marketDataChanged)="onMarketDataChanged($event)" (marketDataChanged)="onMarketDataChanged($event)"
/> />
</div> </div>

1
apps/client/src/app/components/holding-detail-dialog/holding-detail-dialog.html

@ -437,7 +437,6 @@
[locale]="data.locale" [locale]="data.locale"
[marketData]="marketDataItems" [marketData]="marketDataItems"
[symbol]="assetProfile?.symbol" [symbol]="assetProfile?.symbol"
[user]="user"
(marketDataChanged)="onMarketDataChanged($event)" (marketDataChanged)="onMarketDataChanged($event)"
/> />
</mat-tab> </mat-tab>

2
libs/ui/src/lib/historical-market-data-editor/historical-market-data-editor-dialog/interfaces/interfaces.ts

@ -1,4 +1,3 @@
import { User } from '@ghostfolio/common/interfaces';
import { DataSource } from '@ghostfolio/prisma/enums'; import { DataSource } from '@ghostfolio/prisma/enums';
export interface HistoricalMarketDataEditorDialogParams { export interface HistoricalMarketDataEditorDialogParams {
@ -7,5 +6,4 @@ export interface HistoricalMarketDataEditorDialogParams {
dateString: string; dateString: string;
marketPrice?: number; marketPrice?: number;
symbol: string; symbol: string;
user: User;
} }

6
libs/ui/src/lib/historical-market-data-editor/historical-market-data-editor.component.ts

@ -4,7 +4,7 @@ import {
getDateFormatString, getDateFormatString,
getLocale getLocale
} from '@ghostfolio/common/helper'; } from '@ghostfolio/common/helper';
import { LineChartItem, User } from '@ghostfolio/common/interfaces'; import { LineChartItem } from '@ghostfolio/common/interfaces';
import type { MarketData } from '@ghostfolio/prisma/browser'; import type { MarketData } from '@ghostfolio/prisma/browser';
import { DataSource } from '@ghostfolio/prisma/enums'; import { DataSource } from '@ghostfolio/prisma/enums';
import { DataService } from '@ghostfolio/ui/services'; import { DataService } from '@ghostfolio/ui/services';
@ -70,7 +70,6 @@ export class GfHistoricalMarketDataEditorComponent
@Input() dataSource: DataSource; @Input() dataSource: DataSource;
@Input() dateOfFirstActivity?: Date; @Input() dateOfFirstActivity?: Date;
@Input() symbol: string; @Input() symbol: string;
@Input() user: User;
@Output() marketDataChanged = new EventEmitter<boolean>(); @Output() marketDataChanged = new EventEmitter<boolean>();
@ -233,8 +232,7 @@ export class GfHistoricalMarketDataEditorComponent
currency: this.currency, currency: this.currency,
dataSource: this.dataSource, dataSource: this.dataSource,
dateString: `${yearMonth}-${day}`, dateString: `${yearMonth}-${day}`,
symbol: this.symbol, symbol: this.symbol
user: this.user
}, },
height: this.deviceType() === 'mobile' ? '98vh' : '80vh', height: this.deviceType() === 'mobile' ? '98vh' : '80vh',
width: this.deviceType() === 'mobile' ? '100vw' : '50rem' width: this.deviceType() === 'mobile' ? '100vw' : '50rem'

Loading…
Cancel
Save