From 03e2fd8760f7a4d081cd816399d4cc52a94e4797 Mon Sep 17 00:00:00 2001 From: John Mitchell Date: Mon, 6 Feb 2017 11:18:21 -0500 Subject: [PATCH] quick fix to make host status bar work for no-stats-event jobs --- .../host-status-bar/host-status-bar.directive.js | 2 +- .../host-status-bar/host-status-bar.partial.html | 6 +++++- awx/ui/client/src/job-results/job-results.controller.js | 1 + 3 files changed, 7 insertions(+), 2 deletions(-) diff --git a/awx/ui/client/src/job-results/host-status-bar/host-status-bar.directive.js b/awx/ui/client/src/job-results/host-status-bar/host-status-bar.directive.js index 778d238e47..5a8b5b3206 100644 --- a/awx/ui/client/src/job-results/host-status-bar/host-status-bar.directive.js +++ b/awx/ui/client/src/job-results/host-status-bar/host-status-bar.directive.js @@ -33,7 +33,7 @@ export default [ 'templateUrl', // if there are any hosts that have finished, don't // show default grey bar - scope.hostsFinished = (Object + scope.hasCount = (Object .keys(val) .filter(key => (val[key] > 0)).length > 0); } diff --git a/awx/ui/client/src/job-results/host-status-bar/host-status-bar.partial.html b/awx/ui/client/src/job-results/host-status-bar/host-status-bar.partial.html index 2d860cc2e6..a8854b6d09 100644 --- a/awx/ui/client/src/job-results/host-status-bar/host-status-bar.partial.html +++ b/awx/ui/client/src/job-results/host-status-bar/host-status-bar.partial.html @@ -21,6 +21,10 @@ data-tip-watch="skippedCountTip">
+
diff --git a/awx/ui/client/src/job-results/job-results.controller.js b/awx/ui/client/src/job-results/job-results.controller.js index 396debbcc1..d19e7a919d 100644 --- a/awx/ui/client/src/job-results/job-results.controller.js +++ b/awx/ui/client/src/job-results/job-results.controller.js @@ -652,6 +652,7 @@ function(jobData, jobDataOptions, jobLabels, jobFinished, count, $scope, ParseTy // correct anything that was out of sync from the job run jobResultsService.getJobData($scope.job.id).then(function(data){ $scope.job = data; + $scope.jobFinished = true; }); } } else if (parseInt(data.project_id, 10) ===