|
@ -47,7 +47,7 @@ export class GfXRayPageComponent { |
|
|
public inactiveRules: PortfolioReportRule[]; |
|
|
public inactiveRules: PortfolioReportRule[]; |
|
|
public isLoading = false; |
|
|
public isLoading = false; |
|
|
public regionalMarketClusterRiskRules: PortfolioReportRule[]; |
|
|
public regionalMarketClusterRiskRules: PortfolioReportRule[]; |
|
|
public statistics: PortfolioReportResponse['x-ray']['statistics']; |
|
|
public statistics: PortfolioReportResponse['xRay']['statistics']; |
|
|
public user: User; |
|
|
public user: User; |
|
|
|
|
|
|
|
|
private unsubscribeSubject = new Subject<void>(); |
|
|
private unsubscribeSubject = new Subject<void>(); |
|
@ -115,7 +115,7 @@ export class GfXRayPageComponent { |
|
|
this.dataService |
|
|
this.dataService |
|
|
.fetchPortfolioReport() |
|
|
.fetchPortfolioReport() |
|
|
.pipe(takeUntil(this.unsubscribeSubject)) |
|
|
.pipe(takeUntil(this.unsubscribeSubject)) |
|
|
.subscribe(({ 'x-ray': { rules, statistics } }) => { |
|
|
.subscribe(({ xRay: { rules, statistics } }) => { |
|
|
this.inactiveRules = this.mergeInactiveRules(rules); |
|
|
this.inactiveRules = this.mergeInactiveRules(rules); |
|
|
this.statistics = statistics; |
|
|
this.statistics = statistics; |
|
|
|
|
|
|
|
@ -161,7 +161,7 @@ export class GfXRayPageComponent { |
|
|
} |
|
|
} |
|
|
|
|
|
|
|
|
private mergeInactiveRules( |
|
|
private mergeInactiveRules( |
|
|
rules: PortfolioReportResponse['x-ray']['rules'] |
|
|
rules: PortfolioReportResponse['xRay']['rules'] |
|
|
): PortfolioReportRule[] { |
|
|
): PortfolioReportRule[] { |
|
|
let inactiveRules: PortfolioReportRule[] = []; |
|
|
let inactiveRules: PortfolioReportRule[] = []; |
|
|
|
|
|
|
|
|