|
|
|
|
@ -1,7 +1,7 @@
|
|
|
|
|
import { Component, DestroyRef, inject, OnInit } from "@angular/core";
|
|
|
|
|
import { takeUntilDestroyed } from "@angular/core/rxjs-interop";
|
|
|
|
|
import { ActivatedRoute } from "@angular/router";
|
|
|
|
|
import { BehaviorSubject, firstValueFrom } from "rxjs";
|
|
|
|
|
import { firstValueFrom } from "rxjs";
|
|
|
|
|
|
|
|
|
|
import {
|
|
|
|
|
AllActivitiesService,
|
|
|
|
|
@ -31,7 +31,6 @@ import { RiskInsightsTabType } from "./risk-insights.component";
|
|
|
|
|
})
|
|
|
|
|
export class AllActivityComponent implements OnInit {
|
|
|
|
|
protected isLoading$ = this.dataService.isLoading$;
|
|
|
|
|
protected noData$ = new BehaviorSubject(true);
|
|
|
|
|
organization: Organization | null = null;
|
|
|
|
|
totalCriticalAppsAtRiskMemberCount = 0;
|
|
|
|
|
totalCriticalAppsCount = 0;
|
|
|
|
|
@ -53,7 +52,6 @@ export class AllActivityComponent implements OnInit {
|
|
|
|
|
this.allActivitiesService.reportSummary$
|
|
|
|
|
.pipe(takeUntilDestroyed(this.destroyRef))
|
|
|
|
|
.subscribe((summary) => {
|
|
|
|
|
this.noData$.next(summary.totalApplicationCount === 0);
|
|
|
|
|
this.totalCriticalAppsAtRiskMemberCount = summary.totalCriticalAtRiskMemberCount;
|
|
|
|
|
this.totalCriticalAppsCount = summary.totalCriticalApplicationCount;
|
|
|
|
|
this.totalCriticalAppsAtRiskCount = summary.totalCriticalAtRiskApplicationCount;
|
|
|
|
|
|