quick fix to make host status bar work for no-stats-event jobs

This commit is contained in:
John Mitchell 2017-02-06 11:18:21 -05:00
parent 1651f62a76
commit 03e2fd8760
3 changed files with 7 additions and 2 deletions

View File

@ -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);
}

View File

@ -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>

View File

@ -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) ===