From 60048f6da131efdc6c3e51705aef2dbf368a65dd Mon Sep 17 00:00:00 2001 From: Kenny Lee Sin Cheong <2530351+kleesc@users.noreply.github.com> Date: Wed, 24 Oct 2018 13:28:55 -0400 Subject: [PATCH] Force reload on any change to repositoryTags (#3273) --- static/js/directives/repo-view/repo-panel-tags.js | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/static/js/directives/repo-view/repo-panel-tags.js b/static/js/directives/repo-view/repo-panel-tags.js index f1f54752f..2fe30f82e 100644 --- a/static/js/directives/repo-view/repo-panel-tags.js +++ b/static/js/directives/repo-view/repo-panel-tags.js @@ -244,11 +244,12 @@ angular.module('quay').directive('repoPanelTags', function () { loadRepoSignatures(); }); - $scope.$watch('repositoryTags', function(tags) { + $scope.$watch('repositoryTags', function(newTags, oldTags) { + if (newTags === oldTags) { return; } // Process each of the tags. setTagState(); loadRepoSignatures(); - }); + }, true); $scope.loadImageVulnerabilities = function(image_id, imageData) { VulnerabilityService.loadImageVulnerabilities($scope.repository, image_id, function(resp) {