New builds go at the beginning of the build list.

This commit is contained in:
jakedt 2014-03-05 17:44:02 -05:00
parent 773701b14d
commit 9c8de90378

View file

@ -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);
});
};