|
|
@ -40,6 +40,7 @@ import { takeUntil } from 'rxjs/operators'; |
|
|
|
}) |
|
|
|
export class AnalysisPageComponent implements OnDestroy, OnInit { |
|
|
|
@ViewChild(MatMenuTrigger) actionsMenuButton!: MatMenuTrigger; |
|
|
|
|
|
|
|
public benchmark: Partial<SymbolProfile>; |
|
|
|
public benchmarkDataItems: HistoricalDataItem[] = []; |
|
|
|
public benchmarks: Partial<SymbolProfile>[]; |
|
|
@ -54,11 +55,11 @@ export class AnalysisPageComponent implements OnDestroy, OnInit { |
|
|
|
public investments: InvestmentItem[]; |
|
|
|
public investmentTimelineDataLabel = $localize`Investment`; |
|
|
|
public investmentsByGroup: InvestmentItem[]; |
|
|
|
public isLoadingAiPrompt: boolean; |
|
|
|
public isLoadingBenchmarkComparator: boolean; |
|
|
|
public isLoadingDividendTimelineChart: boolean; |
|
|
|
public isLoadingInvestmentChart: boolean; |
|
|
|
public isLoadingInvestmentTimelineChart: boolean; |
|
|
|
public isLoadingAiPrompt: boolean; |
|
|
|
public mode: GroupBy = 'month'; |
|
|
|
public modeOptions: ToggleOption[] = [ |
|
|
|
{ label: $localize`Monthly`, value: 'month' }, |
|
|
@ -153,6 +154,7 @@ export class AnalysisPageComponent implements OnDestroy, OnInit { |
|
|
|
|
|
|
|
public onCopyPromptToClipboard(mode: AiPromptMode) { |
|
|
|
this.isLoadingAiPrompt = true; |
|
|
|
|
|
|
|
this.dataService |
|
|
|
.fetchPrompt(mode) |
|
|
|
.pipe(takeUntil(this.unsubscribeSubject)) |
|
|
@ -175,6 +177,7 @@ export class AnalysisPageComponent implements OnDestroy, OnInit { |
|
|
|
}); |
|
|
|
|
|
|
|
this.actionsMenuButton.closeMenu(); |
|
|
|
|
|
|
|
this.isLoadingAiPrompt = false; |
|
|
|
}); |
|
|
|
} |
|
|
|