Force reload on any change to repositoryTags (#3273)

This commit is contained in:
Kenny Lee Sin Cheong 2018-10-24 13:28:55 -04:00 committed by GitHub
parent f76d153764
commit 60048f6da1
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -244,11 +244,12 @@ angular.module('quay').directive('repoPanelTags', function () {
loadRepoSignatures(); loadRepoSignatures();
}); });
$scope.$watch('repositoryTags', function(tags) { $scope.$watch('repositoryTags', function(newTags, oldTags) {
if (newTags === oldTags) { return; }
// Process each of the tags. // Process each of the tags.
setTagState(); setTagState();
loadRepoSignatures(); loadRepoSignatures();
}); }, true);
$scope.loadImageVulnerabilities = function(image_id, imageData) { $scope.loadImageVulnerabilities = function(image_id, imageData) {
VulnerabilityService.loadImageVulnerabilities($scope.repository, image_id, function(resp) { VulnerabilityService.loadImageVulnerabilities($scope.repository, image_id, function(resp) {