diff --git a/static/js/controllers.js b/static/js/controllers.js index cec6ab260..d63586c27 100644 --- a/static/js/controllers.js +++ b/static/js/controllers.js @@ -950,7 +950,7 @@ function RepoBuildCtrl($scope, Restangular, ApiService, $routeParams, $rootScope }; $scope.handleBuildStarted = function(newBuild) { - $scope.builds.push(newBuild); + $scope.builds.unshift(newBuild); $scope.setCurrentBuild(newBuild['id'], true); }; @@ -984,7 +984,7 @@ function RepoBuildCtrl($scope, Restangular, ApiService, $routeParams, $rootScope }; ApiService.requestRepoBuild(data, params).then(function(newBuild) { - $scope.builds.push(newBuild); + $scope.builds.unshift(newBuild); $scope.setCurrentBuild(newBuild['id'], true); }); };