Merge pull request #2634 from alecmerdler/fix-image-vuln-view

Fix Image Vulnerabilities Not Loading
This commit is contained in:
Alec Merdler 2017-05-10 13:28:12 -07:00 committed by GitHub
commit 945510dcf0
2 changed files with 24 additions and 0 deletions

View file

@ -86,6 +86,18 @@ angular.module('quay').directive('imageFeatureView', function () {
$scope.$watch('options.reverse', buildOrderedFeatures);
$scope.$watch('options.filter', buildOrderedFeatures);
$scope.$watch('repository', function(repository) {
if ($scope.isEnabled && $scope.repository && $scope.image) {
loadImageVulnerabilities();
}
});
$scope.$watch('image', function(image) {
if ($scope.isEnabled && $scope.repository && $scope.image) {
loadImageVulnerabilities();
}
});
$scope.$watch('isEnabled', function(isEnabled) {
if ($scope.isEnabled && $scope.repository && $scope.image) {
loadImageVulnerabilities();

View file

@ -123,6 +123,18 @@ angular.module('quay').directive('imageVulnerabilityView', function () {
$scope.$watch('options.filter', buildOrderedVulnerabilities);
$scope.$watch('options.fixableVulns', buildOrderedVulnerabilities);
$scope.$watch('repository', function(repository) {
if ($scope.isEnabled && $scope.repository && $scope.image) {
loadImageVulnerabilities();
}
});
$scope.$watch('image', function(image) {
if ($scope.isEnabled && $scope.repository && $scope.image) {
loadImageVulnerabilities();
}
});
$scope.$watch('isEnabled', function(isEnabled) {
if ($scope.isEnabled && $scope.repository && $scope.image) {
loadImageVulnerabilities();