diff --git a/awx/ui_next/src/components/LaunchButton/LaunchButton.jsx b/awx/ui_next/src/components/LaunchButton/LaunchButton.jsx index 7137f44860..830a660603 100644 --- a/awx/ui_next/src/components/LaunchButton/LaunchButton.jsx +++ b/awx/ui_next/src/components/LaunchButton/LaunchButton.jsx @@ -113,25 +113,29 @@ class LaunchButton extends React.Component { handleLaunch: this.handleLaunch, handleRelaunch: this.handleRelaunch, })} - - {i18n._(t`Failed to launch job.`)} - - - - {i18n._( - t`Launching jobs with promptable fields is not supported at this time.` - )} - + {launchError && ( + + {i18n._(t`Failed to launch job.`)} + + + )} + {promptError && ( + + {i18n._( + t`Launching jobs with promptable fields is not supported at this time.` + )} + + )} ); }