mirror of
https://github.com/ansible/awx.git
synced 2026-01-12 02:19:58 -03:30
fixing cancel function for workflow results
This commit is contained in:
parent
48e75b3e19
commit
db50779731
@ -36,7 +36,7 @@
|
||||
<button class="List-actionButton
|
||||
List-actionButton--delete"
|
||||
data-placement="top"
|
||||
ng-click="deleteJob()"
|
||||
ng-click="cancelJob()"
|
||||
ng-show="workflow.status == 'running' ||
|
||||
workflow.status=='pending' "
|
||||
aw-tool-tip="{{'Cancel'|translate}}"
|
||||
|
||||
@ -106,20 +106,6 @@ export default ['$q', 'Prompt', '$filter', 'Wait', 'Rest', '$state', 'ProcessErr
|
||||
});
|
||||
}
|
||||
});
|
||||
Rest.destroy()
|
||||
.success(function() {
|
||||
Wait('stop');
|
||||
$('#prompt-modal').modal('hide');
|
||||
})
|
||||
.error(function(obj, status) {
|
||||
Wait('stop');
|
||||
$('#prompt-modal').modal('hide');
|
||||
ProcessErrors(null, obj, status, null, {
|
||||
hdr: 'Error!',
|
||||
msg: `Could not cancel workflow.
|
||||
Returned status: ${status}`
|
||||
});
|
||||
});
|
||||
},
|
||||
actionText: 'CANCEL'
|
||||
});
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user