mirror of
https://github.com/scratchfoundation/scratch-www.git
synced 2024-11-26 17:16:11 -05:00
Merge pull request #2366 from paulkaplan/fix-cloud-switching
Pass canSave to both editor and player view to allow cloud reconnecting.
This commit is contained in:
commit
443039389a
2 changed files with 4 additions and 0 deletions
|
@ -51,6 +51,7 @@ const PreviewPresentation = ({
|
||||||
canRemix,
|
canRemix,
|
||||||
canReport,
|
canReport,
|
||||||
canRestoreComments,
|
canRestoreComments,
|
||||||
|
canSave,
|
||||||
canShare,
|
canShare,
|
||||||
canUseBackpack,
|
canUseBackpack,
|
||||||
cloudHost,
|
cloudHost,
|
||||||
|
@ -209,6 +210,7 @@ const PreviewPresentation = ({
|
||||||
backpackVisible={canUseBackpack}
|
backpackVisible={canUseBackpack}
|
||||||
basePath="/"
|
basePath="/"
|
||||||
canRemix={canRemix}
|
canRemix={canRemix}
|
||||||
|
canSave={canSave}
|
||||||
className="guiPlayer"
|
className="guiPlayer"
|
||||||
cloudHost={cloudHost}
|
cloudHost={cloudHost}
|
||||||
isFullScreen={isFullScreen}
|
isFullScreen={isFullScreen}
|
||||||
|
@ -498,6 +500,7 @@ PreviewPresentation.propTypes = {
|
||||||
canRemix: PropTypes.bool,
|
canRemix: PropTypes.bool,
|
||||||
canReport: PropTypes.bool,
|
canReport: PropTypes.bool,
|
||||||
canRestoreComments: PropTypes.bool,
|
canRestoreComments: PropTypes.bool,
|
||||||
|
canSave: PropTypes.bool,
|
||||||
canShare: PropTypes.bool,
|
canShare: PropTypes.bool,
|
||||||
canUseBackpack: PropTypes.bool,
|
canUseBackpack: PropTypes.bool,
|
||||||
cloudHost: PropTypes.string,
|
cloudHost: PropTypes.string,
|
||||||
|
|
|
@ -441,6 +441,7 @@ class Preview extends React.Component {
|
||||||
canRemix={this.props.canRemix}
|
canRemix={this.props.canRemix}
|
||||||
canReport={this.props.canReport}
|
canReport={this.props.canReport}
|
||||||
canRestoreComments={this.props.isAdmin}
|
canRestoreComments={this.props.isAdmin}
|
||||||
|
canSave={this.props.canSave}
|
||||||
canShare={this.props.canShare}
|
canShare={this.props.canShare}
|
||||||
canUseBackpack={this.props.canUseBackpack}
|
canUseBackpack={this.props.canUseBackpack}
|
||||||
cloudHost={this.props.cloudHost}
|
cloudHost={this.props.cloudHost}
|
||||||
|
|
Loading…
Reference in a new issue