mirror of
https://github.com/ZwareBear/awx.git
synced 2026-05-03 05:11:49 -05:00
Merge pull request #6662 from keithjgrant/5909-jt-launch-prompt-2
JT Launch Prompting (phase 2) Reviewed-by: https://github.com/apps/softwarefactory-project-zuul
This commit is contained in:
@@ -88,8 +88,8 @@ class LaunchButton extends React.Component {
|
||||
const { history, resource } = this.props;
|
||||
const jobPromise =
|
||||
resource.type === 'workflow_job_template'
|
||||
? WorkflowJobTemplatesAPI.launch(resource.id, params)
|
||||
: JobTemplatesAPI.launch(resource.id, params);
|
||||
? WorkflowJobTemplatesAPI.launch(resource.id, params || {})
|
||||
: JobTemplatesAPI.launch(resource.id, params || {});
|
||||
|
||||
const { data: job } = await jobPromise;
|
||||
history.push(
|
||||
|
||||
Reference in New Issue
Block a user