mirror of
https://github.com/ansible/awx.git
synced 2026-05-07 01:17:37 -02:30
Redirect to WF details page when a Split Job is launched
This commit is contained in:
@@ -41,7 +41,13 @@ function atLaunchTemplateCtrl (
|
|||||||
selectedJobTemplate
|
selectedJobTemplate
|
||||||
.postLaunch({ id: vm.template.id })
|
.postLaunch({ id: vm.template.id })
|
||||||
.then(({ data }) => {
|
.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 {
|
} else {
|
||||||
const promptData = {
|
const promptData = {
|
||||||
|
|||||||
Reference in New Issue
Block a user