Skip to content

Commit

Permalink
Device detail vulnerability number flashes when refreshing primefaces…
Browse files Browse the repository at this point in the history
  • Loading branch information
atretyak1985 authored and Gunnsteinn Hall committed Jul 17, 2019
1 parent 9edc82f commit 159a7d1
Showing 1 changed file with 6 additions and 6 deletions.
12 changes: 6 additions & 6 deletions src/organization/device/device_detail.component.ts
Original file line number Diff line number Diff line change
Expand Up @@ -333,12 +333,12 @@ export class DeviceDetailComponent implements OnInit {
}
}
this.response = r;
this.numGpos = this.response.num_gpos;
this.numIncidents = this.response.num_incidents;
this.numLoggedinusers = this.response.num_loggedinusers;
this.numPatches = this.response.num_patches;
this.numSoftware = this.response.num_software;
this.numVulnerabilities = this.response.num_vulnerabilities;
this.numGpos = this.isTabSelected(this.GROUP_POLICY_TAB_INDEX) ? this.numGpos : this.response.num_gpos;
this.numIncidents = this.isTabSelected(this.INCIDENT_TAB_INDEX) ? this.numIncidents : this.response.num_incidents;
this.numLoggedinusers = this.isTabSelected(this.USER_TAB_INDEX) ? this.numLoggedinusers : this.response.num_loggedinusers;
this.numPatches = this.isTabSelected(this.PATCH_TAB_INDEX) ? this.numPatches : this.response.num_patches;
this.numSoftware = this.isTabSelected(this.SOFTWARE_TAB_INDEX) ? this.numSoftware : this.response.num_software;
this.numVulnerabilities = this.isTabSelected(this.VULNERABILITY_TAB_INDEX) ? this.numVulnerabilities : this.response.num_vulnerabilities;
this.isVulnerabilitiesTabActive = this.response.num_vulnerabilities > 0;
this.isGposTabActive = this.response.num_gpos > 0;
this.isIncidentsTabActive = this.response.num_incidents > 0;
Expand Down

0 comments on commit 159a7d1

Please sign in to comment.