|
|
@ -14,6 +14,7 @@ import { GfValueComponent } from '@ghostfolio/ui/value'; |
|
|
|
|
|
|
|
|
import { CommonModule } from '@angular/common'; |
|
|
import { CommonModule } from '@angular/common'; |
|
|
import { |
|
|
import { |
|
|
|
|
|
ChangeDetectionStrategy, |
|
|
ChangeDetectorRef, |
|
|
ChangeDetectorRef, |
|
|
Component, |
|
|
Component, |
|
|
computed, |
|
|
computed, |
|
|
@ -29,6 +30,7 @@ import { DeviceDetectorService } from 'ngx-device-detector'; |
|
|
import { NgxSkeletonLoaderModule } from 'ngx-skeleton-loader'; |
|
|
import { NgxSkeletonLoaderModule } from 'ngx-skeleton-loader'; |
|
|
|
|
|
|
|
|
@Component({ |
|
|
@Component({ |
|
|
|
|
|
changeDetection: ChangeDetectionStrategy.OnPush, |
|
|
imports: [ |
|
|
imports: [ |
|
|
CommonModule, |
|
|
CommonModule, |
|
|
FormsModule, |
|
|
FormsModule, |
|
|
@ -89,6 +91,7 @@ export class GfFirePageComponent implements OnInit { |
|
|
: 0 |
|
|
: 0 |
|
|
} |
|
|
} |
|
|
}; |
|
|
}; |
|
|
|
|
|
|
|
|
if (this.user.subscription?.type === SubscriptionType.Basic) { |
|
|
if (this.user.subscription?.type === SubscriptionType.Basic) { |
|
|
this.fireWealth = { |
|
|
this.fireWealth = { |
|
|
today: { |
|
|
today: { |
|
|
@ -107,6 +110,8 @@ export class GfFirePageComponent implements OnInit { |
|
|
.pipe(takeUntilDestroyed(this.destroyRef)) |
|
|
.pipe(takeUntilDestroyed(this.destroyRef)) |
|
|
.subscribe((impersonationId) => { |
|
|
.subscribe((impersonationId) => { |
|
|
this.hasImpersonationId = !!impersonationId; |
|
|
this.hasImpersonationId = !!impersonationId; |
|
|
|
|
|
|
|
|
|
|
|
this.changeDetectorRef.markForCheck(); |
|
|
}); |
|
|
}); |
|
|
|
|
|
|
|
|
this.safeWithdrawalRateControl.valueChanges |
|
|
this.safeWithdrawalRateControl.valueChanges |
|
|
@ -135,9 +140,9 @@ export class GfFirePageComponent implements OnInit { |
|
|
); |
|
|
); |
|
|
|
|
|
|
|
|
this.calculateWithdrawalRates(); |
|
|
this.calculateWithdrawalRates(); |
|
|
|
|
|
|
|
|
this.changeDetectorRef.markForCheck(); |
|
|
|
|
|
} |
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
this.changeDetectorRef.markForCheck(); |
|
|
}); |
|
|
}); |
|
|
} |
|
|
} |
|
|
|
|
|
|
|
|
|