mirror of
https://github.com/ansible/awx.git
synced 2026-01-15 03:40:42 -03:30
Redirect to WF details page when a Split Job is launched
This commit is contained in:
parent
ef4a2cbebb
commit
04eec61387
@ -41,7 +41,13 @@ function atLaunchTemplateCtrl (
|
||||
selectedJobTemplate
|
||||
.postLaunch({ id: vm.template.id })
|
||||
.then(({ data }) => {
|
||||
$state.go('output', { id: data.job, type: 'playbook' }, { reload: true });
|
||||
/* Split Jobs: Redirect to WF Details page if returned
|
||||
job type is a WF job */
|
||||
if (data.type === 'workflow_job' && data.workflow_job !== null) {
|
||||
$state.go('workflowResults', { id: data.workflow_job }, { reload: true });
|
||||
} else {
|
||||
$state.go('output', { id: data.job, type: 'playbook' }, { reload: true });
|
||||
}
|
||||
});
|
||||
} else {
|
||||
const promptData = {
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user