|
@ -46,7 +46,9 @@ export class AnalysisPageComponent implements OnDestroy, OnInit { |
|
|
public investmentTimelineDataLabel = $localize`Investment`; |
|
|
public investmentTimelineDataLabel = $localize`Investment`; |
|
|
public investmentsByGroup: InvestmentItem[]; |
|
|
public investmentsByGroup: InvestmentItem[]; |
|
|
public isLoadingBenchmarkComparator: boolean; |
|
|
public isLoadingBenchmarkComparator: boolean; |
|
|
|
|
|
public isLoadingDividendTimelineChart: boolean; |
|
|
public isLoadingInvestmentChart: boolean; |
|
|
public isLoadingInvestmentChart: boolean; |
|
|
|
|
|
public isLoadingInvestmentTimelineChart: boolean; |
|
|
public mode: GroupBy = 'month'; |
|
|
public mode: GroupBy = 'month'; |
|
|
public modeOptions: ToggleOption[] = [ |
|
|
public modeOptions: ToggleOption[] = [ |
|
|
{ label: $localize`Monthly`, value: 'month' }, |
|
|
{ label: $localize`Monthly`, value: 'month' }, |
|
@ -154,6 +156,9 @@ export class AnalysisPageComponent implements OnDestroy, OnInit { |
|
|
} |
|
|
} |
|
|
|
|
|
|
|
|
private fetchDividendsAndInvestments() { |
|
|
private fetchDividendsAndInvestments() { |
|
|
|
|
|
this.isLoadingDividendTimelineChart = true; |
|
|
|
|
|
this.isLoadingInvestmentTimelineChart = true; |
|
|
|
|
|
|
|
|
this.dataService |
|
|
this.dataService |
|
|
.fetchDividends({ |
|
|
.fetchDividends({ |
|
|
filters: this.userService.getFilters(), |
|
|
filters: this.userService.getFilters(), |
|
@ -164,6 +169,8 @@ export class AnalysisPageComponent implements OnDestroy, OnInit { |
|
|
.subscribe(({ dividends }) => { |
|
|
.subscribe(({ dividends }) => { |
|
|
this.dividendsByGroup = dividends; |
|
|
this.dividendsByGroup = dividends; |
|
|
|
|
|
|
|
|
|
|
|
this.isLoadingDividendTimelineChart = false; |
|
|
|
|
|
|
|
|
this.changeDetectorRef.markForCheck(); |
|
|
this.changeDetectorRef.markForCheck(); |
|
|
}); |
|
|
}); |
|
|
|
|
|
|
|
@ -194,6 +201,8 @@ export class AnalysisPageComponent implements OnDestroy, OnInit { |
|
|
? translate('MONTH') |
|
|
? translate('MONTH') |
|
|
: translate('MONTHS'); |
|
|
: translate('MONTHS'); |
|
|
|
|
|
|
|
|
|
|
|
this.isLoadingInvestmentTimelineChart = false; |
|
|
|
|
|
|
|
|
this.changeDetectorRef.markForCheck(); |
|
|
this.changeDetectorRef.markForCheck(); |
|
|
}); |
|
|
}); |
|
|
} |
|
|
} |
|
|