ca7d736db2
Fixes #770
16 lines
432 B
JavaScript
16 lines
432 B
JavaScript
/**
|
|
* Service which provides helper methods for working with the vulnerability system.
|
|
*/
|
|
angular.module('quay').factory('VulnerabilityService', ['Config', function(Config) {
|
|
var vulnService = {};
|
|
vulnService.LEVELS = window.__vuln_priority;
|
|
|
|
vulnService.getLevels = function() {
|
|
return Object.keys(vulnService.LEVELS).map(function(key) {
|
|
return vulnService.LEVELS[key];
|
|
});
|
|
};
|
|
|
|
return vulnService;
|
|
}]);
|
|
|