mirror of
https://github.com/ansible/awx.git
synced 2026-02-25 06:56:00 -03:30
AC-177 Added status field to Host Summary page. Field shows red/green icon indicating if host failed or succeeded.
This commit is contained in:
@@ -28,8 +28,9 @@ function JobHostSummaryList ($scope, $rootScope, $location, $log, $routeParams,
|
||||
}
|
||||
scope.PostRefershRemove = scope.$on('PostRefresh', function() {
|
||||
for( var i=0; i < scope.jobhosts.length; i++) {
|
||||
scope.jobhosts[i].host_name = scope.jobhosts[i].summary_fields.host.name;
|
||||
}
|
||||
scope.jobhosts[i].host_name = scope.jobhosts[i].summary_fields.host.name;
|
||||
scope.jobhosts[i].status = (scope.jobhosts[i].failed) ? 'error' : 'success';
|
||||
}
|
||||
});
|
||||
|
||||
SearchInit({ scope: scope, set: 'jobhosts', list: list, url: defaultUrl });
|
||||
|
||||
Reference in New Issue
Block a user