mirror of
https://github.com/ansible/awx.git
synced 2026-05-09 02:17:37 -02:30
AC-463 Latest changes automating refresh button on Projects and Jobs tab. Cleaned up Cancel/Delete buttons on Jobs tab.
This commit is contained in:
@@ -70,10 +70,12 @@ function JobsListCtrl ($scope, $rootScope, $location, $log, $routeParams, Rest,
|
||||
|
||||
LoadBreadCrumbs();
|
||||
|
||||
scope.refreshJob = function() {
|
||||
scope.refresh = function() {
|
||||
scope.search(list.iterator);
|
||||
}
|
||||
|
||||
scope.refreshJob = scope.refresh;
|
||||
|
||||
scope.editJob = function(id, name) {
|
||||
LoadBreadCrumbs({ path: '/jobs/' + id, title: id + ' - ' + name });
|
||||
$location.path($location.path() + '/' + id);
|
||||
@@ -94,7 +96,7 @@ function JobsListCtrl ($scope, $rootScope, $location, $log, $routeParams, Rest,
|
||||
Rest.get()
|
||||
.success( function(data, status, headers, config) {
|
||||
var url, action_label, restcall, hdr;
|
||||
if (data.status == 'pending' || data.status == 'running') {
|
||||
if (data.status == 'pending' || data.status == 'running' || data.status == 'waiting') {
|
||||
url = data.related.cancel;
|
||||
action_label = 'cancel';
|
||||
hdr = 'Cancel Job';
|
||||
|
||||
Reference in New Issue
Block a user