mirror of
https://github.com/scratchfoundation/scratch-www.git
synced 2025-02-17 00:21:20 -05:00
Pass canSave to both editor and player view to allow cloud reconnecting.
The canSave prop was being passed to the editor view, but needs to also be passed to the player view because it is used to decide whether to connect the viewer to cloud variables. People cannot connect to cloud variables after entering editor mode on anothers project.
This commit is contained in:
parent
42f5674a74
commit
c777ccffc8
2 changed files with 4 additions and 0 deletions
|
@ -51,6 +51,7 @@ const PreviewPresentation = ({
|
|||
canRemix,
|
||||
canReport,
|
||||
canRestoreComments,
|
||||
canSave,
|
||||
canShare,
|
||||
canUseBackpack,
|
||||
cloudHost,
|
||||
|
@ -209,6 +210,7 @@ const PreviewPresentation = ({
|
|||
backpackVisible={canUseBackpack}
|
||||
basePath="/"
|
||||
canRemix={canRemix}
|
||||
canSave={canSave}
|
||||
className="guiPlayer"
|
||||
cloudHost={cloudHost}
|
||||
isFullScreen={isFullScreen}
|
||||
|
@ -498,6 +500,7 @@ PreviewPresentation.propTypes = {
|
|||
canRemix: PropTypes.bool,
|
||||
canReport: PropTypes.bool,
|
||||
canRestoreComments: PropTypes.bool,
|
||||
canSave: PropTypes.bool,
|
||||
canShare: PropTypes.bool,
|
||||
canUseBackpack: PropTypes.bool,
|
||||
cloudHost: PropTypes.string,
|
||||
|
|
|
@ -441,6 +441,7 @@ class Preview extends React.Component {
|
|||
canRemix={this.props.canRemix}
|
||||
canReport={this.props.canReport}
|
||||
canRestoreComments={this.props.isAdmin}
|
||||
canSave={this.props.canSave}
|
||||
canShare={this.props.canShare}
|
||||
canUseBackpack={this.props.canUseBackpack}
|
||||
cloudHost={this.props.cloudHost}
|
||||
|
|
Loading…
Reference in a new issue