mirror of
https://github.com/ansible/awx.git
synced 2026-03-03 01:38:50 -03:30
quick fix to make host status bar work for no-stats-event jobs
This commit is contained in:
@@ -33,7 +33,7 @@ export default [ 'templateUrl',
|
|||||||
|
|
||||||
// if there are any hosts that have finished, don't
|
// if there are any hosts that have finished, don't
|
||||||
// show default grey bar
|
// show default grey bar
|
||||||
scope.hostsFinished = (Object
|
scope.hasCount = (Object
|
||||||
.keys(val)
|
.keys(val)
|
||||||
.filter(key => (val[key] > 0)).length > 0);
|
.filter(key => (val[key] > 0)).length > 0);
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -21,6 +21,10 @@
|
|||||||
data-tip-watch="skippedCountTip"></div>
|
data-tip-watch="skippedCountTip"></div>
|
||||||
<div class="HostStatusBar-noData"
|
<div class="HostStatusBar-noData"
|
||||||
aw-tool-tip="The host status bar will update when the job is complete."
|
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>
|
data-placement="top"></div>
|
||||||
</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
|
// correct anything that was out of sync from the job run
|
||||||
jobResultsService.getJobData($scope.job.id).then(function(data){
|
jobResultsService.getJobData($scope.job.id).then(function(data){
|
||||||
$scope.job = data;
|
$scope.job = data;
|
||||||
|
$scope.jobFinished = true;
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
} else if (parseInt(data.project_id, 10) ===
|
} else if (parseInt(data.project_id, 10) ===
|
||||||
|
|||||||
Reference in New Issue
Block a user