diff --git a/awx/ui/static/js/controllers/JobDetail.js b/awx/ui/static/js/controllers/JobDetail.js index cf413bd1e6..e8dbe5b899 100644 --- a/awx/ui/static/js/controllers/JobDetail.js +++ b/awx/ui/static/js/controllers/JobDetail.js @@ -39,6 +39,9 @@ function JobDetailController ($location, $rootScope, $scope, $compile, $routePar scope.hostResultsLoading = true; scope.hostSummariesLoading = true; + // Turn on the 'Waiting...' message until events begin arriving + scope.waiting = true; + scope.liveEventProcessing = true; // true while job is active and live events are arriving scope.pauseLiveEvents = false; // control play/pause state of event processing @@ -93,6 +96,7 @@ function JobDetailController ($location, $rootScope, $scope, $compile, $routePar event_socket.init(); event_socket.on("job_events-" + job_id, function(data) { if (api_complete && data.id > lastEventId) { + scope.waiting = false; data.event = data.event_name; DigestEvent({ scope: scope, event: data }); } @@ -430,7 +434,6 @@ function JobDetailController ($location, $rootScope, $scope, $compile, $routePar scope.host_summary.unreachable = 0; scope.host_summary.failed = 0; scope.host_summary.total = 0; - scope.jobData.plays = {}; var url = scope.job.url + 'job_plays/?order_by=id'; @@ -627,6 +630,7 @@ function JobDetailController ($location, $rootScope, $scope, $compile, $routePar scope.job_status.finished = data.finsished; scope.liveEventProcessing = false; scope.pauseLiveEvents = false; + scope.waiting = false; } else { scope.job_status.finished = null; diff --git a/awx/ui/static/partials/job_detail.html b/awx/ui/static/partials/job_detail.html index 4212604846..8a1b531efa 100644 --- a/awx/ui/static/partials/job_detail.html +++ b/awx/ui/static/partials/job_detail.html @@ -178,11 +178,14 @@