This commit is contained in:
Joseph Schorr 2015-05-06 18:27:04 -04:00
parent 3b3102478a
commit b63b378088

View file

@ -233,8 +233,7 @@ angular.module('quay').directive('repoPanelBuilds', function () {
};
ApiService.manuallyStartBuildTrigger(opt_custom || {}, params).then(function(resp) {
$scope.allBuilds.push(resp);
updateBuilds();
$scope.handleBuildStarted(resp);
}, ApiService.errorDisplay('Could not start build'));
};
@ -261,7 +260,9 @@ angular.module('quay').directive('repoPanelBuilds', function () {
};
$scope.handleBuildStarted = function(build) {
$scope.allBuilds.push(build);
if (!$scope.allBuilds) {
$scope.allBuilds.push(build);
}
updateBuilds();
};
}