From 9295ac78fd811ff07d47e74ab1495c38805daaf5 Mon Sep 17 00:00:00 2001 From: Jared Tabor Date: Tue, 10 Mar 2015 11:28:48 -0400 Subject: [PATCH] Updated status checks for smart status --- awx/ui/static/js/smart-status/smart-status.controller.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/awx/ui/static/js/smart-status/smart-status.controller.js b/awx/ui/static/js/smart-status/smart-status.controller.js index 00190b3151..06108efa3f 100644 --- a/awx/ui/static/js/smart-status/smart-status.controller.js +++ b/awx/ui/static/js/smart-status/smart-status.controller.js @@ -11,10 +11,10 @@ export default ['$scope', function ($scope) { if(recentJobs[i].status==='successful'){ $scope[str].sparkArray[i] = 1; } - if(recentJobs[i].status==='failed'){ + if(recentJobs[i].status==='failed' || recentJobs[i].status==='error' || recentJobs[i].status==='canceled'){ $scope[str].sparkArray[i] = -1; } - if(recentJobs[i].status==='queued'){ + if(recentJobs[i].status==='queued' || recentJobs[i].status==='new' || recentJobs[i].status==='pending' || recentJobs[i].status==='waiting' || recentJobs[i].status==='running'){ $scope[str].sparkArray[i] = 0; } $scope[str].jobIds[i] = recentJobs[i].id;