set default values on prompts

This commit is contained in:
Keith Grant
2020-03-27 16:34:16 -07:00
parent 7f4bbbe5c5
commit 55356ebb51
5 changed files with 12 additions and 13 deletions

View File

@@ -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 })}
/>
)}