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:
chouseknecht
2013-07-01 13:24:25 -04:00
parent e17d984758
commit dc670e86aa
3 changed files with 20 additions and 6 deletions

View File

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