|
|
@ -505,7 +505,11 @@ export class AllocationsPageComponent implements OnDestroy, OnInit { |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
if (this.positions[symbol].assetSubClass === 'ETF') { |
|
|
|
if ( |
|
|
|
this.positions[symbol].assetSubClass === 'ETF' && |
|
|
|
!this.hasImpersonationId && |
|
|
|
!this.user.settings.isRestrictedView |
|
|
|
) { |
|
|
|
this.totalValueInEtf += this.positions[symbol].value; |
|
|
|
} |
|
|
|
|
|
|
@ -553,6 +557,7 @@ export class AllocationsPageComponent implements OnDestroy, OnInit { |
|
|
|
this.markets[UNKNOWN_KEY].value = |
|
|
|
this.markets[UNKNOWN_KEY].value / marketsTotal; |
|
|
|
|
|
|
|
if (!this.hasImpersonationId && !this.user.settings.isRestrictedView) { |
|
|
|
this.topHoldings = Object.values(this.topHoldingsMap) |
|
|
|
.map(({ name, value }) => { |
|
|
|
return { |
|
|
@ -566,6 +571,7 @@ export class AllocationsPageComponent implements OnDestroy, OnInit { |
|
|
|
return b.valueInBaseCurrency - a.valueInBaseCurrency; |
|
|
|
}); |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
private openAccountDetailDialog(aAccountId: string) { |
|
|
|
const dialogRef = this.dialog.open(AccountDetailDialog, { |
|
|
|