Better handling of defcon1
This commit is contained in:
parent
821b09daaf
commit
a941b26a2d
7 changed files with 21 additions and 7 deletions
|
@ -28,11 +28,15 @@ angular.module('quay').directive('imageVulnerabilityView', function () {
|
|||
};
|
||||
|
||||
$scope.getDistro = function(vuln) {
|
||||
if (vuln['severity'] == 'Defcon 1') {
|
||||
return 'the Quay Engineering Team';
|
||||
}
|
||||
|
||||
return vuln['namespace'].split(':', 1);
|
||||
};
|
||||
|
||||
$scope.getSeverityTooltip = function(vuln) {
|
||||
var distro = vuln['namespace'].split(':', 1);
|
||||
var distro = $scope.getDistro(vuln);
|
||||
|
||||
if (vuln.scoreDivergence != 'adjusted-lower') {
|
||||
return 'Marked with a ' + vuln['severity'] + ' severity by ' + distro;
|
||||
|
|
Reference in a new issue