mirror of
https://github.com/ansible/awx.git
synced 2026-01-17 04:31:21 -03:30
Redirect to WF Details page after prompt for slice JT.
This commit is contained in:
parent
f435e577b2
commit
2d286c5f68
@ -148,7 +148,13 @@ function atLaunchTemplateCtrl (
|
||||
id: vm.promptData.template,
|
||||
launchData: jobLaunchData
|
||||
}).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'));
|
||||
} else if (vm.promptData.templateType === 'workflow_job_template') {
|
||||
workflowTemplate.create().postLaunch({
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user