mirror of
https://github.com/ansible/awx.git
synced 2026-02-26 07:26:03 -03:30
Job detail page refactor
Working through testing of task and play pagination changes. Fixed initial errors. More to do once API changes show up.
This commit is contained in:
@@ -186,11 +186,9 @@ function JobDetailController ($rootScope, $scope, $compile, $routeParams, $log,
|
||||
}
|
||||
scope.removePlaysReady = scope.$on('PlaysReady', function() {
|
||||
// Select the most recent play, which will trigger tasks and hosts to load
|
||||
var ids = Object.keys(scope.plays),
|
||||
lastPlay = (ids.length > 0) ? ids[ids.length - 1] : null;
|
||||
SelectPlay({
|
||||
scope: scope,
|
||||
id: lastPlay,
|
||||
id: ((scope.plays.length > 0) ? scope.plays[scope.plays.length - 1].id : null ),
|
||||
callback: 'InitialDataLoaded'
|
||||
});
|
||||
});
|
||||
|
||||
Reference in New Issue
Block a user