diff --git a/static/js/controllers.js b/static/js/controllers.js index 50c437b20..cec6ab260 100644 --- a/static/js/controllers.js +++ b/static/js/controllers.js @@ -696,6 +696,7 @@ function RepoCtrl($scope, $sanitize, Restangular, ImageMetadataService, ApiServi } } + var existingBuilds = $scope.runningBuilds || []; $scope.runningBuilds = runningBuilds; $scope.buildHistory = resp.builds; @@ -706,8 +707,10 @@ function RepoCtrl($scope, $sanitize, Restangular, ImageMetadataService, ApiServi // Mark the repo as no longer building. $scope.repo.is_building = false; - // Reload the repo information. - loadViewInfo(); + // Reload the repo information if all of the builds recently finished. + if (existingBuilds.length > 0) { + loadViewInfo(); + } } }); };