mirror of
https://github.com/ansible/awx.git
synced 2026-01-12 18:40:01 -03:30
quick fix to make host status bar work for no-stats-event jobs
This commit is contained in:
parent
1651f62a76
commit
03e2fd8760
@ -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);
|
||||
}
|
||||
|
||||
@ -21,6 +21,10 @@
|
||||
data-tip-watch="skippedCountTip"></div>
|
||||
<div class="HostStatusBar-noData"
|
||||
aw-tool-tip="The host status bar will update when the job is complete."
|
||||
ng-hide="hostsFinished"
|
||||
ng-show="!hasCount && !jobFinished"
|
||||
data-placement="top"></div>
|
||||
<div class="HostStatusBar-noData"
|
||||
aw-tool-tip="No host status data was given for this job."
|
||||
ng-show="!hasCount && jobFinished"
|
||||
data-placement="top"></div>
|
||||
</div>
|
||||
|
||||
@ -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) ===
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user