From 5fee2d1b6cce558773c6b65c7d7361099a9fe426 Mon Sep 17 00:00:00 2001 From: Karishma Chadha Date: Wed, 5 Dec 2018 22:55:25 -0500 Subject: [PATCH] Do not show cloud variable option in list modal. --- src/containers/blocks.jsx | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/containers/blocks.jsx b/src/containers/blocks.jsx index e038790e4..29a75e267 100644 --- a/src/containers/blocks.jsx +++ b/src/containers/blocks.jsx @@ -384,6 +384,7 @@ class Blocks extends React.Component { optVarType !== this.ScratchBlocks.BROADCAST_MESSAGE_VARIABLE_TYPE && p.prompt.title !== this.ScratchBlocks.Msg.RENAME_VARIABLE_MODAL_TITLE && p.prompt.title !== this.ScratchBlocks.Msg.RENAME_LIST_MODAL_TITLE; + p.prompt.showCloudOption = (optVarType === this.ScratchBlocks.SCALAR_VARIABLE_TYPE) && this.props.canUseCloud; this.setState(p); } handleConnectionModalStart (extensionId) { @@ -460,7 +461,7 @@ class Blocks extends React.Component { isStage={vm.runtime.getEditingTarget().isStage} label={this.state.prompt.message} placeholder={this.state.prompt.defaultValue} - showCloudOption={canUseCloud} + showCloudOption={this.state.prompt.showCloudOption} showVariableOptions={this.state.prompt.showVariableOptions} title={this.state.prompt.title} vm={vm}