mirror of
https://github.com/ansible/awx.git
synced 2026-01-14 19:30:39 -03:30
Added refresh button to jobs list page
This commit is contained in:
parent
8343d20c60
commit
c6e32cde35
@ -28,6 +28,10 @@ function JobsListCtrl ($scope, $rootScope, $location, $log, $routeParams, Rest,
|
||||
|
||||
LoadBreadCrumbs();
|
||||
|
||||
scope.refreshJob = function() {
|
||||
scope.search(list.iterator);
|
||||
}
|
||||
|
||||
scope.editJob = function(id) {
|
||||
$location.path($location.path() + '/' + id);
|
||||
}
|
||||
|
||||
@ -40,7 +40,13 @@ angular.module('JobsListDefinition', [])
|
||||
},
|
||||
|
||||
actions: {
|
||||
},
|
||||
refresh: {
|
||||
ngClick: "refreshJob(\{\{ job.id \}\})",
|
||||
icon: 'icon-refresh',
|
||||
awToolTip: 'Refresh the page',
|
||||
mode: 'all'
|
||||
}
|
||||
},
|
||||
|
||||
fieldActions: {
|
||||
edit: {
|
||||
@ -73,7 +79,7 @@ angular.module('JobsListDefinition', [])
|
||||
ngClick: 'deleteJob(\{\{ job.id \}\})',
|
||||
class: 'btn-danger btn-mini',
|
||||
awToolTip: 'Cancel job',
|
||||
ngDisabled: "job.status == 'error' || job.status == 'failed'"
|
||||
ngDisabled: "job.status == 'error' || job.status == 'failed' || job.status == 'success'"
|
||||
}
|
||||
}
|
||||
});
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user