From 9c8de90378367af336c390f5e1b61ca32e2f888b Mon Sep 17 00:00:00 2001 From: jakedt Date: Wed, 5 Mar 2014 17:44:02 -0500 Subject: [PATCH] New builds go at the beginning of the build list. --- static/js/controllers.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) 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); }); };