mirror of
https://github.com/ansible/awx.git
synced 2026-02-27 07:56:06 -03:30
fixing cancel function for workflow results
This commit is contained in:
@@ -36,7 +36,7 @@
|
|||||||
<button class="List-actionButton
|
<button class="List-actionButton
|
||||||
List-actionButton--delete"
|
List-actionButton--delete"
|
||||||
data-placement="top"
|
data-placement="top"
|
||||||
ng-click="deleteJob()"
|
ng-click="cancelJob()"
|
||||||
ng-show="workflow.status == 'running' ||
|
ng-show="workflow.status == 'running' ||
|
||||||
workflow.status=='pending' "
|
workflow.status=='pending' "
|
||||||
aw-tool-tip="{{'Cancel'|translate}}"
|
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'
|
actionText: 'CANCEL'
|
||||||
});
|
});
|
||||||
|
|||||||
Reference in New Issue
Block a user