mirror of
https://github.com/ansible/awx.git
synced 2026-02-26 23:46:05 -03:30
Merge pull request #358 from mabashian/6034-basic-workflow-copy-error
Properly catch and display workflow copy error when basic license installed
This commit is contained in:
@@ -226,10 +226,11 @@ export default ['$scope', '$rootScope',
|
|||||||
TemplateCopyService.copyWorkflow(template.id)
|
TemplateCopyService.copyWorkflow(template.id)
|
||||||
.then(function(result) {
|
.then(function(result) {
|
||||||
$state.go('templates.editWorkflowJobTemplate', {workflow_job_template_id: result.data.id}, {reload: true});
|
$state.go('templates.editWorkflowJobTemplate', {workflow_job_template_id: result.data.id}, {reload: true});
|
||||||
}, function (data) {
|
})
|
||||||
|
.catch(function (response) {
|
||||||
Wait('stop');
|
Wait('stop');
|
||||||
ProcessErrors($scope, data, status, null, { hdr: 'Error!',
|
ProcessErrors($scope, response.data, response.status, null, { hdr: 'Error!',
|
||||||
msg: 'Call to copy template failed. POST returned status: ' + status });
|
msg: 'Call to copy workflow job template failed. Return status: ' + response.status + '.'});
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
else {
|
else {
|
||||||
|
|||||||
Reference in New Issue
Block a user