From f740bf91cfc4f06c3eafa893332b7c9fef7f6000 Mon Sep 17 00:00:00 2001 From: Brad Rydzewski Date: Tue, 28 Apr 2015 16:36:13 -0700 Subject: [PATCH] don't display logs when build is killed --- server/static/scripts/controllers/builds.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/server/static/scripts/controllers/builds.js b/server/static/scripts/controllers/builds.js index 0620696a0..cd5ee8ed6 100644 --- a/server/static/scripts/controllers/builds.js +++ b/server/static/scripts/controllers/builds.js @@ -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