|
@ -79,7 +79,7 @@ export class AssetProfileDialog implements OnDestroy, OnInit { |
|
|
private dataService: DataService, |
|
|
private dataService: DataService, |
|
|
public dialogRef: MatDialogRef<AssetProfileDialog>, |
|
|
public dialogRef: MatDialogRef<AssetProfileDialog>, |
|
|
private formBuilder: FormBuilder |
|
|
private formBuilder: FormBuilder |
|
|
) { } |
|
|
) {} |
|
|
|
|
|
|
|
|
public ngOnInit(): void { |
|
|
public ngOnInit(): void { |
|
|
this.benchmarks = this.dataService.fetchInfo().benchmarks; |
|
|
this.benchmarks = this.dataService.fetchInfo().benchmarks; |
|
@ -152,14 +152,14 @@ export class AssetProfileDialog implements OnDestroy, OnInit { |
|
|
this.adminService |
|
|
this.adminService |
|
|
.gatherProfileDataBySymbol({ dataSource, symbol }) |
|
|
.gatherProfileDataBySymbol({ dataSource, symbol }) |
|
|
.pipe(takeUntil(this.unsubscribeSubject)) |
|
|
.pipe(takeUntil(this.unsubscribeSubject)) |
|
|
.subscribe(() => { }); |
|
|
.subscribe(() => {}); |
|
|
} |
|
|
} |
|
|
|
|
|
|
|
|
public onGatherSymbol({ dataSource, symbol }: UniqueAsset) { |
|
|
public onGatherSymbol({ dataSource, symbol }: UniqueAsset) { |
|
|
this.adminService |
|
|
this.adminService |
|
|
.gatherSymbol({ dataSource, symbol }) |
|
|
.gatherSymbol({ dataSource, symbol }) |
|
|
.pipe(takeUntil(this.unsubscribeSubject)) |
|
|
.pipe(takeUntil(this.unsubscribeSubject)) |
|
|
.subscribe(() => { }); |
|
|
.subscribe(() => {}); |
|
|
} |
|
|
} |
|
|
|
|
|
|
|
|
public onImportHistoricalData() { |
|
|
public onImportHistoricalData() { |
|
@ -212,13 +212,13 @@ export class AssetProfileDialog implements OnDestroy, OnInit { |
|
|
scraperConfiguration = JSON.parse( |
|
|
scraperConfiguration = JSON.parse( |
|
|
this.assetProfileForm.controls['scraperConfiguration'].value |
|
|
this.assetProfileForm.controls['scraperConfiguration'].value |
|
|
); |
|
|
); |
|
|
} catch { } |
|
|
} catch {} |
|
|
|
|
|
|
|
|
try { |
|
|
try { |
|
|
symbolMapping = JSON.parse( |
|
|
symbolMapping = JSON.parse( |
|
|
this.assetProfileForm.controls['symbolMapping'].value |
|
|
this.assetProfileForm.controls['symbolMapping'].value |
|
|
); |
|
|
); |
|
|
} catch { } |
|
|
} catch {} |
|
|
|
|
|
|
|
|
const assetProfileData: UpdateAssetProfileDto = { |
|
|
const assetProfileData: UpdateAssetProfileDto = { |
|
|
assetClass: this.assetProfileForm.controls['assetClass'].value, |
|
|
assetClass: this.assetProfileForm.controls['assetClass'].value, |
|
|