Skip to content

Commit bd88918

Browse files
author
Sarah Otts
authored
Merge branch 'develop' into arabic-animate-name
2 parents df2bb85 + 2589ff8 commit bd88918

File tree

5 files changed

+27
-11
lines changed

5 files changed

+27
-11
lines changed

package-lock.json

Lines changed: 6 additions & 6 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

package.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -75,13 +75,13 @@
7575
"redux-throttle": "0.1.1",
7676
"scratch-audio": "0.1.0-prerelease.20200528195344",
7777
"scratch-blocks": "0.1.0-prerelease.20211110095305",
78-
"scratch-l10n": "3.14.20211216031518",
78+
"scratch-l10n": "3.14.20220102031517",
7979
"scratch-paint": "0.2.0-prerelease.20211027080909",
8080
"scratch-render": "0.1.0-prerelease.20211028200436",
8181
"scratch-render-fonts": "1.0.0-prerelease.20210401210003",
8282
"scratch-storage": "1.3.5",
8383
"scratch-svg-renderer": "0.2.0-prerelease.20210727023023",
84-
"scratch-vm": "0.2.0-prerelease.20211216081552",
84+
"scratch-vm": "0.2.0-prerelease.20220102085704",
8585
"startaudiocontext": "1.2.1",
8686
"style-loader": "^0.23.0",
8787
"text-encoding": "0.7.0",

src/components/prompt/prompt.jsx

Lines changed: 16 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -30,6 +30,12 @@ const messages = defineMessages({
3030
description: 'A message that displays in a variable modal when the stage is selected indicating ' +
3131
'that the variable being created will available to all sprites.',
3232
id: 'gui.gui.variablePromptAllSpritesMessage'
33+
},
34+
listAvailableToAllSpritesMessage: {
35+
defaultMessage: 'This list will be available to all sprites.',
36+
description: 'A message that displays in a list modal when the stage is selected indicating ' +
37+
'that the list being created will available to all sprites.',
38+
id: 'gui.gui.listPromptAllSpritesMessage'
3339
}
3440
});
3541

@@ -58,9 +64,15 @@ const PromptComponent = props => (
5864
<div>
5965
{props.isStage ?
6066
<div className={styles.infoMessage}>
61-
<FormattedMessage
62-
{...messages.availableToAllSpritesMessage}
63-
/>
67+
{props.showListMessage ? (
68+
<FormattedMessage
69+
{...messages.listAvailableToAllSpritesMessage}
70+
/>
71+
) : (
72+
<FormattedMessage
73+
{...messages.availableToAllSpritesMessage}
74+
/>
75+
)}
6476
</div> :
6577
<Box className={styles.optionsRow}>
6678
<label>
@@ -141,6 +153,7 @@ PromptComponent.propTypes = {
141153
defaultValue: PropTypes.string,
142154
globalSelected: PropTypes.bool.isRequired,
143155
isStage: PropTypes.bool.isRequired,
156+
showListMessage: PropTypes.bool.isRequired,
144157
label: PropTypes.string.isRequired,
145158
onCancel: PropTypes.func.isRequired,
146159
onChange: PropTypes.func.isRequired,

src/containers/blocks.jsx

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -544,6 +544,7 @@ class Blocks extends React.Component {
544544
<Prompt
545545
defaultValue={this.state.prompt.defaultValue}
546546
isStage={vm.runtime.getEditingTarget().isStage}
547+
showListMessage={this.state.prompt.varType === this.ScratchBlocks.LIST_VARIABLE_TYPE}
547548
label={this.state.prompt.message}
548549
showCloudOption={this.state.prompt.showCloudOption}
549550
showVariableOptions={this.state.prompt.showVariableOptions}

src/containers/prompt.jsx

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -60,6 +60,7 @@ class Prompt extends React.Component {
6060
defaultValue={this.props.defaultValue}
6161
globalSelected={this.state.globalSelected}
6262
isStage={this.props.isStage}
63+
showListMessage={this.props.showListMessage}
6364
label={this.props.label}
6465
showCloudOption={this.props.showCloudOption}
6566
showVariableOptions={this.props.showVariableOptions}
@@ -79,6 +80,7 @@ class Prompt extends React.Component {
7980
Prompt.propTypes = {
8081
defaultValue: PropTypes.string,
8182
isStage: PropTypes.bool.isRequired,
83+
showListMessage: PropTypes.bool.isRequired,
8284
label: PropTypes.string.isRequired,
8385
onCancel: PropTypes.func.isRequired,
8486
onOk: PropTypes.func.isRequired,

0 commit comments

Comments
 (0)