|
|
@ -309,7 +309,6 @@ export class AnalysisPageComponent implements OnDestroy, OnInit { |
|
|
|
} |
|
|
|
|
|
|
|
private update() { |
|
|
|
this.isLoadingBenchmarkComparator = true; |
|
|
|
this.isLoadingInvestmentChart = true; |
|
|
|
|
|
|
|
this.dataService |
|
|
@ -386,10 +385,8 @@ export class AnalysisPageComponent implements OnDestroy, OnInit { |
|
|
|
|
|
|
|
private updateBenchmarkDataItems() { |
|
|
|
this.benchmarkDataItems = []; |
|
|
|
this.isLoadingBenchmarkComparator = false; |
|
|
|
|
|
|
|
if (!this.user.settings.benchmark) return; |
|
|
|
|
|
|
|
if (this.user.settings.benchmark) { |
|
|
|
const { dataSource, symbol } = |
|
|
|
this.benchmarks.find(({ id }) => { |
|
|
|
return id === this.user.settings.benchmark; |
|
|
@ -397,6 +394,7 @@ export class AnalysisPageComponent implements OnDestroy, OnInit { |
|
|
|
|
|
|
|
if (dataSource && symbol) { |
|
|
|
this.isLoadingBenchmarkComparator = true; |
|
|
|
|
|
|
|
this.dataService |
|
|
|
.fetchBenchmarkBySymbol({ |
|
|
|
dataSource, |
|
|
@ -413,7 +411,10 @@ export class AnalysisPageComponent implements OnDestroy, OnInit { |
|
|
|
}); |
|
|
|
|
|
|
|
this.isLoadingBenchmarkComparator = false; |
|
|
|
|
|
|
|
this.changeDetectorRef.markForCheck(); |
|
|
|
}); |
|
|
|
} |
|
|
|
} |
|
|
|
} |
|
|
|
} |
|
|
|