diff --git a/src/views/Dashboard.vue b/src/views/Dashboard.vue index e32a25e5d..907bf2842 100644 --- a/src/views/Dashboard.vue +++ b/src/views/Dashboard.vue @@ -124,12 +124,28 @@ {{totalProjects}} + + + {{ $t('message.vulnerable_projects') }}
+ {{vulnerableProjects}} +
+
+ + + + {{ $t('message.components') }}
{{totalComponents}}
+ + + {{ $t('message.vulnerable_components') }}
+ {{vulnerableComponents}} +
+
@@ -141,25 +157,43 @@ - + + {{ $t('message.suppressed') }}
+ {{suppressed}} +
+
+ + + + + + + + {{ $t('message.policy_violations') }}
{{totalViolations}}
+ + + {{ $t('policy_violation.license') }}
+ {{licenseViolations}} +
+
- {{ $t('message.findings') }}
- {{totalFindings}} + {{ $t('policy_violation.operational') }}
+ {{operationalViolations}}
- - {{ $t('message.suppressed') }}
- {{suppressed}} + + {{ $t('policy_violation.security') }}
+ {{securityViolations}}
@@ -218,6 +252,9 @@ warnViolationsPercent: 0, infoViolations: 0, infoViolationsPercent: 0, + licenseViolations: 0, + operationalViolations: 0, + securityViolations: 0, vulnerabilities: 0, suppressed: 0, @@ -251,6 +288,9 @@ this.warnViolationsPercent = common.calcProgressPercent(this.totalViolations, this.warnViolations); this.infoViolations = common.valueWithDefault(metric.policyViolationsInfo, "0"); this.infoViolationsPercent = common.calcProgressPercent(this.totalViolations, this.infoViolations); + this.licenseViolations = common.valueWithDefault(metric.policyViolationsLicenseTotal,"0"); + this.operationalViolations = common.valueWithDefault(metric.policyViolationsOperationalTotal,"0"); + this.securityViolations = common.valueWithDefault(metric.policyViolationsSecurityTotal,"0"); this.vulnerabilities = common.valueWithDefault(metric.vulnerabilities, "0"); this.suppressed = common.valueWithDefault(metric.suppressed, "0");