mirror of
https://github.com/ansible/awx.git
synced 2026-03-09 21:49:27 -02:30
Fix to delete/cancel jobs
This commit is contained in:
@@ -462,6 +462,9 @@ export default
|
|||||||
else if (scope.queued_jobs) {
|
else if (scope.queued_jobs) {
|
||||||
jobs = scope.queued_jobs;
|
jobs = scope.queued_jobs;
|
||||||
}
|
}
|
||||||
|
else if (scope.all_jobs) {
|
||||||
|
jobs = scope.all_jobs;
|
||||||
|
}
|
||||||
else if (scope.jobs) {
|
else if (scope.jobs) {
|
||||||
jobs = scope.jobs;
|
jobs = scope.jobs;
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -101,14 +101,14 @@ export default
|
|||||||
ngClick: 'deleteJob(all_job.id)',
|
ngClick: 'deleteJob(all_job.id)',
|
||||||
awToolTip: 'Cancel the job',
|
awToolTip: 'Cancel the job',
|
||||||
dataPlacement: 'top',
|
dataPlacement: 'top',
|
||||||
ngShow: "all_job.status === 'running'"
|
ngShow: "all_job.status === 'running'|| all_job.status == 'waiting' || all_job.status == 'pending'"
|
||||||
},
|
},
|
||||||
"delete": {
|
"delete": {
|
||||||
mode: 'all',
|
mode: 'all',
|
||||||
ngClick: 'deleteJob(all_job.id)',
|
ngClick: 'deleteJob(all_job.id)',
|
||||||
awToolTip: 'Delete the job',
|
awToolTip: 'Delete the job',
|
||||||
dataPlacement: 'top',
|
dataPlacement: 'top',
|
||||||
ngShow: "all_job.status !== 'running'"
|
ngShow: "all_job.status !== 'running' && all_job.status !== 'waiting' && all_job.status !== 'pending'"
|
||||||
},
|
},
|
||||||
stdout: {
|
stdout: {
|
||||||
mode: 'all',
|
mode: 'all',
|
||||||
|
|||||||
Reference in New Issue
Block a user