Merge branch 'bobthe' of ssh://bitbucket.org/yackob03/quay into bobthe

This commit is contained in:
yackob03 2014-02-11 19:55:36 -05:00
commit 86449afad9

View file

@ -873,9 +873,15 @@ function RepoBuildCtrl($scope, Restangular, ApiService, $routeParams, $rootScope
ApiService.getRepoBuildLogsAsResource(params, true).withOptions(options).get(function(resp) {
if (resp['commands']) {
$scope.commands = resp['commands'];
// Add the commands to the map.
for (var i = 0; i < $scope.commands.length; ++i) {
var command = $scope.commands[i];
$scope.commandMap[command['index']] = command;
}
}
processLogs(resp.logs, $scope.logStartIndex);
processLogs(resp['logs'], resp['start']);
$scope.logStartIndex = resp['total'];
$scope.polling = false;
});