|
|
@ -33,6 +33,7 @@ export class AllocationsPageComponent implements OnDestroy, OnInit {
|
|
|
|
value: number;
|
|
|
|
value: number;
|
|
|
|
};
|
|
|
|
};
|
|
|
|
};
|
|
|
|
};
|
|
|
|
|
|
|
|
public activeFilters: Filter[] = [];
|
|
|
|
public allFilters: Filter[];
|
|
|
|
public allFilters: Filter[];
|
|
|
|
public continents: {
|
|
|
|
public continents: {
|
|
|
|
[code: string]: { name: string; value: number };
|
|
|
|
[code: string]: { name: string; value: number };
|
|
|
@ -130,8 +131,11 @@ export class AllocationsPageComponent implements OnDestroy, OnInit {
|
|
|
|
distinctUntilChanged(),
|
|
|
|
distinctUntilChanged(),
|
|
|
|
switchMap((filters) => {
|
|
|
|
switchMap((filters) => {
|
|
|
|
this.isLoading = true;
|
|
|
|
this.isLoading = true;
|
|
|
|
|
|
|
|
this.activeFilters = filters;
|
|
|
|
|
|
|
|
|
|
|
|
return this.dataService.fetchPortfolioDetails({ filters });
|
|
|
|
return this.dataService.fetchPortfolioDetails({
|
|
|
|
|
|
|
|
filters: this.activeFilters
|
|
|
|
|
|
|
|
});
|
|
|
|
}),
|
|
|
|
}),
|
|
|
|
takeUntil(this.unsubscribeSubject)
|
|
|
|
takeUntil(this.unsubscribeSubject)
|
|
|
|
)
|
|
|
|
)
|
|
|
@ -343,7 +347,10 @@ export class AllocationsPageComponent implements OnDestroy, OnInit {
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
if (position.dataSource) {
|
|
|
|
if (
|
|
|
|
|
|
|
|
this.activeFilters?.length === 0 ||
|
|
|
|
|
|
|
|
position.assetSubClass !== AssetClass.CASH
|
|
|
|
|
|
|
|
) {
|
|
|
|
this.symbols[prettifySymbol(symbol)] = {
|
|
|
|
this.symbols[prettifySymbol(symbol)] = {
|
|
|
|
dataSource: position.dataSource,
|
|
|
|
dataSource: position.dataSource,
|
|
|
|
name: position.name,
|
|
|
|
name: position.name,
|
|
|
|