diff --git a/awx/ui/static/js/controllers/JobDetail.js b/awx/ui/static/js/controllers/JobDetail.js index 80af9baf25..82be1d3832 100644 --- a/awx/ui/static/js/controllers/JobDetail.js +++ b/awx/ui/static/js/controllers/JobDetail.js @@ -100,13 +100,13 @@ function JobDetailController ($rootScope, $scope, $compile, $routeParams, $log, Rest.setUrl(url); Rest.get() .success(function(data) { - if (data.count > 0) { + if (data.results.length > 0) { LoadHostSummary({ scope: scope, data: data.results[0].event_data }); - UpdateDOM({ scope: scope }); } + UpdateDOM({ scope: scope }); }) .error(function(data, status) { ProcessErrors(scope, data, status, null, { hdr: 'Error!', diff --git a/awx/ui/static/js/helpers/JobDetail.js b/awx/ui/static/js/helpers/JobDetail.js index 0246b47d6f..bb1e6f61aa 100644 --- a/awx/ui/static/js/helpers/JobDetail.js +++ b/awx/ui/static/js/helpers/JobDetail.js @@ -948,7 +948,9 @@ function($rootScope, $log, UpdatePlayStatus, UpdateHostStatus, AddHostResult, Ge result.push(scope.jobData.plays[keys[idx]]); idx++; } - scope.plays = result; + setTimeout(function() { + scope.$apply(function() { scope.plays = result; }); + }); }; }]) @@ -970,7 +972,9 @@ function($rootScope, $log, UpdatePlayStatus, UpdateHostStatus, AddHostResult, Ge idx++; } } - scope.tasks = result; + setTimeout(function() { + scope.$apply(function() { scope.tasks = result; }); + }); }; }])