mirror of
https://github.com/ansible/awx.git
synced 2026-01-23 07:28:02 -03:30
Job detail page refactor
Draw host results in reverse order
This commit is contained in:
parent
540f10bfbc
commit
09f42399e5
@ -927,14 +927,15 @@ function($rootScope, $log, UpdatePlayStatus, UpdateHostStatus, AddHostResult, Ge
|
||||
hostResults = JSON.parse(JSON.stringify(scope.jobData.plays[scope.activePlay].tasks[scope.activeTask].hostResults));
|
||||
keys = Object.keys(hostResults);
|
||||
|
||||
keys.sort(function(a,b) {
|
||||
/*keys.sort(function(a,b) {
|
||||
if (hostResults[a].name > hostResults[b].name)
|
||||
return 1;
|
||||
if (hostResults[a].name < hostResults[b].name)
|
||||
return -1;
|
||||
// a must be equal to b
|
||||
return 0;
|
||||
});
|
||||
});*/
|
||||
keys.reverse();
|
||||
|
||||
while (idx < keys.length && idx < scope.hostResultsMaxRows) {
|
||||
result.push(hostResults[keys[idx]]);
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user