Only reload the view when canceling the timer if a build recently finished.
This commit is contained in:
		
							parent
							
								
									63bfde1036
								
							
						
					
					
						commit
						a633fa47aa
					
				
					 1 changed files with 5 additions and 2 deletions
				
			
		|  | @ -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(); | ||||
|         } | ||||
|       } | ||||
|     }); | ||||
|   }; | ||||
|  |  | |||
		Reference in a new issue