Browse Source

Refactoring

pull/5434/head
Thomas Kaul 4 months ago
parent
commit
28f6227cb2
  1. 6
      apps/client/src/app/components/admin-market-data/create-asset-profile-dialog/create-asset-profile-dialog.component.ts

6
apps/client/src/app/components/admin-market-data/create-asset-profile-dialog/create-asset-profile-dialog.component.ts

@ -58,7 +58,7 @@ export class GfCreateAssetProfileDialogComponent implements OnInit, OnDestroy {
public mode: CreateAssetProfileDialogMode; public mode: CreateAssetProfileDialogMode;
private customCurrencies: string[]; private customCurrencies: string[];
private exchangeRateDataSource: DataSource; private dataSourceForExchangeRates: DataSource;
private unsubscribeSubject = new Subject<void>(); private unsubscribeSubject = new Subject<void>();
public constructor( public constructor(
@ -121,7 +121,7 @@ export class GfCreateAssetProfileDialogComponent implements OnInit, OnDestroy {
.pipe( .pipe(
switchMap(() => { switchMap(() => {
return this.adminService.gatherSymbol({ return this.adminService.gatherSymbol({
dataSource: this.exchangeRateDataSource, dataSource: this.dataSourceForExchangeRates,
symbol: `${DEFAULT_CURRENCY}${currency}` symbol: `${DEFAULT_CURRENCY}${currency}`
}); });
}), }),
@ -192,7 +192,7 @@ export class GfCreateAssetProfileDialogComponent implements OnInit, OnDestroy {
return useForExchangeRates; return useForExchangeRates;
}); });
this.exchangeRateDataSource = dataSource; this.dataSourceForExchangeRates = dataSource;
this.changeDetectorRef.markForCheck(); this.changeDetectorRef.markForCheck();
}); });

Loading…
Cancel
Save