|
|
@ -15,6 +15,7 @@ import { GfToggleComponent } from '@ghostfolio/ui/toggle'; |
|
|
import { GfTreemapChartComponent } from '@ghostfolio/ui/treemap-chart'; |
|
|
import { GfTreemapChartComponent } from '@ghostfolio/ui/treemap-chart'; |
|
|
|
|
|
|
|
|
import { |
|
|
import { |
|
|
|
|
|
ChangeDetectionStrategy, |
|
|
ChangeDetectorRef, |
|
|
ChangeDetectorRef, |
|
|
Component, |
|
|
Component, |
|
|
CUSTOM_ELEMENTS_SCHEMA, |
|
|
CUSTOM_ELEMENTS_SCHEMA, |
|
|
@ -32,6 +33,7 @@ import { gridOutline, reorderFourOutline } from 'ionicons/icons'; |
|
|
import { DeviceDetectorService } from 'ngx-device-detector'; |
|
|
import { DeviceDetectorService } from 'ngx-device-detector'; |
|
|
|
|
|
|
|
|
@Component({ |
|
|
@Component({ |
|
|
|
|
|
changeDetection: ChangeDetectionStrategy.OnPush, |
|
|
imports: [ |
|
|
imports: [ |
|
|
FormsModule, |
|
|
FormsModule, |
|
|
GfHoldingsTableComponent, |
|
|
GfHoldingsTableComponent, |
|
|
@ -88,6 +90,8 @@ export class GfHomeHoldingsComponent implements OnInit { |
|
|
.pipe(takeUntilDestroyed(this.destroyRef)) |
|
|
.pipe(takeUntilDestroyed(this.destroyRef)) |
|
|
.subscribe((impersonationId) => { |
|
|
.subscribe((impersonationId) => { |
|
|
this.hasImpersonationId = !!impersonationId; |
|
|
this.hasImpersonationId = !!impersonationId; |
|
|
|
|
|
|
|
|
|
|
|
this.changeDetectorRef.markForCheck(); |
|
|
}); |
|
|
}); |
|
|
|
|
|
|
|
|
this.userService.stateChanged |
|
|
this.userService.stateChanged |
|
|
@ -107,9 +111,9 @@ export class GfHomeHoldingsComponent implements OnInit { |
|
|
); |
|
|
); |
|
|
|
|
|
|
|
|
this.initialize(); |
|
|
this.initialize(); |
|
|
|
|
|
} |
|
|
|
|
|
|
|
|
this.changeDetectorRef.markForCheck(); |
|
|
this.changeDetectorRef.markForCheck(); |
|
|
} |
|
|
|
|
|
}); |
|
|
}); |
|
|
|
|
|
|
|
|
this.viewModeFormControl.valueChanges |
|
|
this.viewModeFormControl.valueChanges |
|
|
|