|
@ -32,6 +32,7 @@ export class AnalysisPageComponent implements OnDestroy, OnInit { |
|
|
public hasImpersonationId: boolean; |
|
|
public hasImpersonationId: boolean; |
|
|
public investments: InvestmentItem[]; |
|
|
public investments: InvestmentItem[]; |
|
|
public investmentsByMonth: InvestmentItem[]; |
|
|
public investmentsByMonth: InvestmentItem[]; |
|
|
|
|
|
public isLoadingBenchmarkComparator: boolean; |
|
|
public mode: GroupBy; |
|
|
public mode: GroupBy; |
|
|
public modeOptions: ToggleOption[] = [ |
|
|
public modeOptions: ToggleOption[] = [ |
|
|
{ label: $localize`Monthly`, value: 'month' }, |
|
|
{ label: $localize`Monthly`, value: 'month' }, |
|
@ -122,6 +123,8 @@ export class AnalysisPageComponent implements OnDestroy, OnInit { |
|
|
|
|
|
|
|
|
private update() { |
|
|
private update() { |
|
|
if (this.user.settings.isExperimentalFeatures) { |
|
|
if (this.user.settings.isExperimentalFeatures) { |
|
|
|
|
|
this.isLoadingBenchmarkComparator = true; |
|
|
|
|
|
|
|
|
this.dataService |
|
|
this.dataService |
|
|
.fetchChart({ range: this.user?.settings?.dateRange, version: 2 }) |
|
|
.fetchChart({ range: this.user?.settings?.dateRange, version: 2 }) |
|
|
.pipe(takeUntil(this.unsubscribeSubject)) |
|
|
.pipe(takeUntil(this.unsubscribeSubject)) |
|
@ -199,8 +202,12 @@ export class AnalysisPageComponent implements OnDestroy, OnInit { |
|
|
}; |
|
|
}; |
|
|
}); |
|
|
}); |
|
|
|
|
|
|
|
|
|
|
|
this.isLoadingBenchmarkComparator = false; |
|
|
|
|
|
|
|
|
this.changeDetectorRef.markForCheck(); |
|
|
this.changeDetectorRef.markForCheck(); |
|
|
}); |
|
|
}); |
|
|
|
|
|
} else { |
|
|
|
|
|
this.isLoadingBenchmarkComparator = false; |
|
|
} |
|
|
} |
|
|
} |
|
|
} |
|
|
} |
|
|
} |
|
|