mirror of
https://github.com/ansible/awx.git
synced 2026-05-17 06:17:36 -02:30
Add a re-run button to Jobs page.
This commit is contained in:
@@ -12,7 +12,7 @@
|
||||
|
||||
function JobsListCtrl ($scope, $rootScope, $location, $log, $routeParams, Rest, Alert, JobList,
|
||||
GenerateList, LoadBreadCrumbs, Prompt, SearchInit, PaginateInit, ReturnToCaller,
|
||||
ClearScope, ProcessErrors, GetBasePath, LookUpInit)
|
||||
ClearScope, ProcessErrors, GetBasePath, LookUpInit, SubmitJob)
|
||||
{
|
||||
ClearScope('htmlTemplate');
|
||||
var list = JobList;
|
||||
@@ -105,11 +105,14 @@ function JobsListCtrl ($scope, $rootScope, $location, $log, $routeParams, Rest,
|
||||
|
||||
}
|
||||
|
||||
scope.submitJob = function(id, template) {
|
||||
SubmitJob({ scope: scope, id: id, template: template });
|
||||
}
|
||||
}
|
||||
|
||||
JobsListCtrl.$inject = [ '$scope', '$rootScope', '$location', '$log', '$routeParams', 'Rest', 'Alert', 'JobList',
|
||||
'GenerateList', 'LoadBreadCrumbs', 'Prompt', 'SearchInit', 'PaginateInit', 'ReturnToCaller', 'ClearScope',
|
||||
'ProcessErrors','GetBasePath', 'LookUpInit'
|
||||
'ProcessErrors','GetBasePath', 'LookUpInit', 'SubmitJob'
|
||||
];
|
||||
|
||||
|
||||
|
||||
Reference in New Issue
Block a user