|
|
|
@ -58,7 +58,7 @@ export class GfHomeHoldingsComponent implements OnInit { |
|
|
|
protected hasImpersonationId: boolean; |
|
|
|
protected hasPermissionToAccessHoldingsChart: boolean; |
|
|
|
protected hasPermissionToCreateActivity: boolean; |
|
|
|
protected holdings: PortfolioPosition[]; |
|
|
|
protected holdings: PortfolioPosition[] | undefined; |
|
|
|
protected holdingType: HoldingType = 'ACTIVE'; |
|
|
|
protected readonly holdingTypeOptions: ToggleOption[] = [ |
|
|
|
{ label: $localize`Active`, value: 'ACTIVE' }, |
|
|
|
@ -181,8 +181,8 @@ export class GfHomeHoldingsComponent implements OnInit { |
|
|
|
this.viewModeFormControl.setValue( |
|
|
|
this.deviceType === 'mobile' |
|
|
|
? GfHomeHoldingsComponent.DEFAULT_HOLDINGS_VIEW_MODE |
|
|
|
: this.user?.settings?.holdingsViewMode || |
|
|
|
GfHomeHoldingsComponent.DEFAULT_HOLDINGS_VIEW_MODE, |
|
|
|
: (this.user?.settings?.holdingsViewMode ?? |
|
|
|
GfHomeHoldingsComponent.DEFAULT_HOLDINGS_VIEW_MODE), |
|
|
|
{ emitEvent: false } |
|
|
|
); |
|
|
|
} else if (this.holdingType === 'CLOSED') { |
|
|
|
@ -192,7 +192,7 @@ export class GfHomeHoldingsComponent implements OnInit { |
|
|
|
); |
|
|
|
} |
|
|
|
|
|
|
|
this.holdings = []; |
|
|
|
this.holdings = undefined; |
|
|
|
|
|
|
|
this.fetchHoldings() |
|
|
|
.pipe(takeUntilDestroyed(this.destroyRef)) |
|
|
|
|