don't display logs when build is killed

This commit is contained in:
Brad Rydzewski 2015-04-28 16:36:13 -07:00
parent 7649248385
commit f740bf91cf

View file

@ -100,7 +100,7 @@
$scope.build = payload.data;
$scope.task = payload.data.tasks[step-1];
if ($scope.task.state === 'pending') {
if (['pending', 'killed'].indexOf($scope.task.state) !== -1) {
// do nothing
} else if ($scope.task.state === 'running') {
// stream the build