Update security scan col in repo view to use donut chart and better language

This commit is contained in:
Joseph Schorr 2017-03-02 16:21:52 -05:00
parent af743b156b
commit 4b51fa5e5b
9 changed files with 113 additions and 20 deletions

View file

@ -213,7 +213,8 @@ angular.module('quay').directive('repoPanelTags', function () {
highest = {
'Priority': vuln.Severity,
'Count': 1,
'index': VulnerabilityService.LEVELS[vuln.Severity].index
'index': VulnerabilityService.LEVELS[vuln.Severity].index,
'Color': VulnerabilityService.LEVELS[vuln.Severity].color
}
} else if (VulnerabilityService.LEVELS[vuln.Severity].index == highest.index) {
highest['Count']++;
@ -226,6 +227,7 @@ angular.module('quay').directive('repoPanelTags', function () {
imageData.hasVulnerabilities = !!vulnerabilities.length;
imageData.vulnerabilities = vulnerabilities;
imageData.highestVulnerability = highest;
imageData.featuresInfo = VulnerabilityService.buildFeaturesInfo(null, resp);
}
}, function() {
imageData.loading = false;