mirror of
https://github.com/ZwareBear/awx.git
synced 2026-04-21 23:41:49 -05:00
set default values on prompts
This commit is contained in:
@@ -145,7 +145,7 @@ class LaunchButton extends React.Component {
|
||||
|
||||
render() {
|
||||
const { launchError, showLaunchPrompt, launchConfig } = this.state;
|
||||
const { i18n, children } = this.props;
|
||||
const { resource, i18n, children } = this.props;
|
||||
return (
|
||||
<Fragment>
|
||||
{children({
|
||||
@@ -166,6 +166,7 @@ class LaunchButton extends React.Component {
|
||||
{showLaunchPrompt && (
|
||||
<LaunchPrompt
|
||||
config={launchConfig}
|
||||
resource={resource}
|
||||
onCancel={() => this.setState({ showLaunchPrompt: false })}
|
||||
/>
|
||||
)}
|
||||
|
||||
Reference in New Issue
Block a user