mirror of
https://github.com/ansible/awx.git
synced 2026-03-07 11:41:08 -03:30
AC-331 final clean up
This commit is contained in:
@@ -77,6 +77,10 @@ function InventoriesList ($scope, $rootScope, $location, $log, $routeParams, Res
|
||||
scope.viewJobs = function(id) {
|
||||
$location.url('/jobs/?inventory__int=' + id + '&order_by=status');
|
||||
}
|
||||
|
||||
scope.viewFailedJobs = function(id) {
|
||||
$location.url('/jobs/?inventory__int=' + id + '&status=failed&order_by=status');
|
||||
}
|
||||
}
|
||||
|
||||
InventoriesList.$inject = [ '$scope', '$rootScope', '$location', '$log', '$routeParams', 'Rest', 'Alert', 'InventoryList', 'GenerateList',
|
||||
@@ -482,11 +486,10 @@ function InventoriesEdit ($scope, $rootScope, $compile, $location, $log, $routeP
|
||||
HostsDelete({ scope: scope, "inventory_id": id, group_id: scope.group_id, host_id: host_id, host_name: host_name,
|
||||
request: 'delete' });
|
||||
}
|
||||
|
||||
/* scope.removeHost = function(host_id, host_name) {
|
||||
HostsDelete({ scope: scope, "inventory_id": id, group_id: scope.group_id, host_id: host_id, host_name: host_name,
|
||||
request: 'remove' });
|
||||
} */
|
||||
|
||||
scope.viewJobs = function(last_job) {
|
||||
$location.url('/jobs/?id__int=' + last_job );
|
||||
}
|
||||
|
||||
scope.viewLastEvents = function(host_id, last_job, host_name, last_job_name) {
|
||||
// Choose View-> Latest job events
|
||||
|
||||
@@ -50,6 +50,11 @@ function JobsListCtrl ($scope, $rootScope, $location, $log, $routeParams, Rest,
|
||||
scope[list.iterator + 'SearchValue'] = $routeParams['inventory__int'];
|
||||
scope[list.iterator + 'SearchFieldLabel'] = 'Inventory ID';
|
||||
}
|
||||
if ($routeParams['id__int']) {
|
||||
scope[list.iterator + 'SearchField'] = 'id';
|
||||
scope[list.iterator + 'SearchValue'] = $routeParams['id__int'];
|
||||
scope[list.iterator + 'SearchFieldLabel'] = 'Job ID';
|
||||
}
|
||||
scope.search(list.iterator);
|
||||
|
||||
// Called from Inventories page, failed jobs link. Now sort by status so faild jobs appear at top of list
|
||||
|
||||
Reference in New Issue
Block a user