|
|
@ -119,6 +119,10 @@ export class GfHomeHoldingsComponent implements OnInit { |
|
|
this.viewModeFormControl.valueChanges |
|
|
this.viewModeFormControl.valueChanges |
|
|
.pipe(takeUntilDestroyed(this.destroyRef)) |
|
|
.pipe(takeUntilDestroyed(this.destroyRef)) |
|
|
.subscribe((holdingsViewMode) => { |
|
|
.subscribe((holdingsViewMode) => { |
|
|
|
|
|
if (!holdingsViewMode) { |
|
|
|
|
|
return; |
|
|
|
|
|
} |
|
|
|
|
|
|
|
|
this.dataService |
|
|
this.dataService |
|
|
.putUserSetting({ holdingsViewMode }) |
|
|
.putUserSetting({ holdingsViewMode }) |
|
|
.pipe(takeUntilDestroyed(this.destroyRef)) |
|
|
.pipe(takeUntilDestroyed(this.destroyRef)) |
|
|
@ -185,7 +189,7 @@ export class GfHomeHoldingsComponent implements OnInit { |
|
|
); |
|
|
); |
|
|
} |
|
|
} |
|
|
|
|
|
|
|
|
this.holdings = undefined; |
|
|
this.holdings = []; |
|
|
|
|
|
|
|
|
this.fetchHoldings() |
|
|
this.fetchHoldings() |
|
|
.pipe(takeUntilDestroyed(this.destroyRef)) |
|
|
.pipe(takeUntilDestroyed(this.destroyRef)) |
|
|
|