|
|
@ -1,7 +1,7 @@ |
|
|
|
import { DataService } from '@ghostfolio/client/services/data.service'; |
|
|
|
import { ImpersonationStorageService } from '@ghostfolio/client/services/impersonation-storage.service'; |
|
|
|
import { UserService } from '@ghostfolio/client/services/user/user.service'; |
|
|
|
import { PortfolioReportRule, User } from '@ghostfolio/common/interfaces'; |
|
|
|
import { User } from '@ghostfolio/common/interfaces'; |
|
|
|
import { hasPermission, permissions } from '@ghostfolio/common/permissions'; |
|
|
|
|
|
|
|
import { ChangeDetectorRef, Component, OnDestroy, OnInit } from '@angular/core'; |
|
|
@ -17,13 +17,10 @@ import { takeUntil } from 'rxjs/operators'; |
|
|
|
}) |
|
|
|
export class FirePageComponent implements OnDestroy, OnInit { |
|
|
|
public deviceType: string; |
|
|
|
public economicMarketClusterRiskRules: PortfolioReportRule[]; |
|
|
|
public fireWealth: Big; |
|
|
|
public hasImpersonationId: boolean; |
|
|
|
public hasPermissionToUpdateUserSettings: boolean; |
|
|
|
public inactiveRules: PortfolioReportRule[]; |
|
|
|
public isLoading = false; |
|
|
|
public isLoadingPortfolioReport = false; |
|
|
|
public user: User; |
|
|
|
public withdrawalRatePerMonth: Big; |
|
|
|
public withdrawalRatePerYear: Big; |
|
|
@ -86,8 +83,6 @@ export class FirePageComponent implements OnDestroy, OnInit { |
|
|
|
this.changeDetectorRef.markForCheck(); |
|
|
|
} |
|
|
|
}); |
|
|
|
|
|
|
|
this.initializePortfolioReport(); |
|
|
|
} |
|
|
|
|
|
|
|
public onAnnualInterestRateChange(annualInterestRate: number) { |
|
|
@ -163,8 +158,4 @@ export class FirePageComponent implements OnDestroy, OnInit { |
|
|
|
this.unsubscribeSubject.next(); |
|
|
|
this.unsubscribeSubject.complete(); |
|
|
|
} |
|
|
|
|
|
|
|
private initializePortfolioReport() { |
|
|
|
this.isLoadingPortfolioReport = true; |
|
|
|
} |
|
|
|
} |
|
|
|