mirror of
https://github.com/ansible/awx.git
synced 2026-05-15 21:37:42 -02:30
Job detail page
Fix for https://trello.com/c/lRz0fKuM/293-play-missing-from-job-detail-page
This commit is contained in:
@@ -491,7 +491,7 @@ function JobDetailController ($location, $rootScope, $scope, $compile, $routePar
|
|||||||
|
|
||||||
scope.jobData.plays[event.id].hostCount = ok + changed + failed + skipped;
|
scope.jobData.plays[event.id].hostCount = ok + changed + failed + skipped;
|
||||||
|
|
||||||
if (scope.jobData.plays[event.id].hostCount > 0) {
|
if (scope.jobData.plays[event.id].hostCount > 0 || event.unreachable_count > 0) {
|
||||||
// force the play to be on the 'active' list
|
// force the play to be on the 'active' list
|
||||||
scope.jobData.plays[event.id].taskCount = 1;
|
scope.jobData.plays[event.id].taskCount = 1;
|
||||||
}
|
}
|
||||||
@@ -506,6 +506,7 @@ function JobDetailController ($location, $rootScope, $scope, $compile, $routePar
|
|||||||
if (scope.activePlay && scope.jobData.plays[scope.activePlay]) {
|
if (scope.activePlay && scope.jobData.plays[scope.activePlay]) {
|
||||||
scope.jobData.plays[scope.activePlay].playActiveClass = 'active';
|
scope.jobData.plays[scope.activePlay].playActiveClass = 'active';
|
||||||
}
|
}
|
||||||
|
console.log(scope.jobData.plays);
|
||||||
scope.$emit('LoadTasks', events_url);
|
scope.$emit('LoadTasks', events_url);
|
||||||
})
|
})
|
||||||
.error( function(data, status) {
|
.error( function(data, status) {
|
||||||
|
|||||||
Reference in New Issue
Block a user