parent
de9a0e51d3
commit
666114dea4
3 changed files with 20 additions and 2 deletions
|
@ -36,6 +36,8 @@ angular.module('quay').directive('repoPanelTags', function () {
|
|||
$scope.showingHistory = false;
|
||||
$scope.tagsPerPage = 25;
|
||||
$scope.imageVulnerabilities = {};
|
||||
$scope.defcon1 = {};
|
||||
$scope.hasDefcon1 = false;
|
||||
|
||||
var setTagState = function() {
|
||||
if (!$scope.repository || !$scope.selectedTags) { return; }
|
||||
|
@ -173,6 +175,11 @@ angular.module('quay').directive('repoPanelTags', function () {
|
|||
};
|
||||
|
||||
resp.data.Vulnerabilities.forEach(function(v) {
|
||||
if (VulnerabilityService.LEVELS[v.Priority].index == 0) {
|
||||
$scope.defcon1[v.ID] = v;
|
||||
$scope.hasDefcon1 = true;
|
||||
}
|
||||
|
||||
if (VulnerabilityService.LEVELS[v.Priority].index < highest.index) {
|
||||
highest = {
|
||||
'Priority': v.Priority,
|
||||
|
|
Reference in a new issue