Merge branch 'bobthe' of ssh://bitbucket.org/yackob03/quay into bobthe
This commit is contained in:
commit
86449afad9
1 changed files with 7 additions and 1 deletions
|
@ -873,9 +873,15 @@ function RepoBuildCtrl($scope, Restangular, ApiService, $routeParams, $rootScope
|
||||||
ApiService.getRepoBuildLogsAsResource(params, true).withOptions(options).get(function(resp) {
|
ApiService.getRepoBuildLogsAsResource(params, true).withOptions(options).get(function(resp) {
|
||||||
if (resp['commands']) {
|
if (resp['commands']) {
|
||||||
$scope.commands = 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.logStartIndex = resp['total'];
|
||||||
$scope.polling = false;
|
$scope.polling = false;
|
||||||
});
|
});
|
||||||
|
|
Reference in a new issue