Merge pull request #2634 from alecmerdler/fix-image-vuln-view
Fix Image Vulnerabilities Not Loading
This commit is contained in:
commit
945510dcf0
2 changed files with 24 additions and 0 deletions
|
@ -86,6 +86,18 @@ angular.module('quay').directive('imageFeatureView', function () {
|
||||||
$scope.$watch('options.reverse', buildOrderedFeatures);
|
$scope.$watch('options.reverse', buildOrderedFeatures);
|
||||||
$scope.$watch('options.filter', 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) {
|
$scope.$watch('isEnabled', function(isEnabled) {
|
||||||
if ($scope.isEnabled && $scope.repository && $scope.image) {
|
if ($scope.isEnabled && $scope.repository && $scope.image) {
|
||||||
loadImageVulnerabilities();
|
loadImageVulnerabilities();
|
||||||
|
|
|
@ -123,6 +123,18 @@ angular.module('quay').directive('imageVulnerabilityView', function () {
|
||||||
$scope.$watch('options.filter', buildOrderedVulnerabilities);
|
$scope.$watch('options.filter', buildOrderedVulnerabilities);
|
||||||
$scope.$watch('options.fixableVulns', 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) {
|
$scope.$watch('isEnabled', function(isEnabled) {
|
||||||
if ($scope.isEnabled && $scope.repository && $scope.image) {
|
if ($scope.isEnabled && $scope.repository && $scope.image) {
|
||||||
loadImageVulnerabilities();
|
loadImageVulnerabilities();
|
||||||
|
|
Reference in a new issue