mirror of
https://github.com/ansible/awx.git
synced 2026-02-26 23:46:05 -03:30
fixing cancel function for workflow results
This commit is contained in:
@@ -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'
|
||||
});
|
||||
|
||||
Reference in New Issue
Block a user