mirror of
https://github.com/ansible/awx.git
synced 2026-05-07 01:17:37 -02:30
Redirect to WF Details page after prompt for slice JT.
This commit is contained in:
@@ -148,7 +148,13 @@ function atLaunchTemplateCtrl (
|
|||||||
id: vm.promptData.template,
|
id: vm.promptData.template,
|
||||||
launchData: jobLaunchData
|
launchData: jobLaunchData
|
||||||
}).then((launchRes) => {
|
}).then((launchRes) => {
|
||||||
$state.go('output', { id: launchRes.data.job, type: 'playbook' }, { reload: true });
|
/* Slice Jobs: Redirect to WF Details page if returned
|
||||||
|
job type is a WF job */
|
||||||
|
if (launchRes.data.type === 'workflow_job' && launchRes.data.workflow_job !== null) {
|
||||||
|
$state.go('workflowResults', { id: launchRes.data.workflow_job }, { reload: true });
|
||||||
|
} else {
|
||||||
|
$state.go('output', { id: launchRes.data.job, type: 'playbook' }, { reload: true });
|
||||||
|
}
|
||||||
}).catch(createErrorHandler('launch job template', 'POST'));
|
}).catch(createErrorHandler('launch job template', 'POST'));
|
||||||
} else if (vm.promptData.templateType === 'workflow_job_template') {
|
} else if (vm.promptData.templateType === 'workflow_job_template') {
|
||||||
workflowTemplate.create().postLaunch({
|
workflowTemplate.create().postLaunch({
|
||||||
|
|||||||
Reference in New Issue
Block a user