mirror of
https://github.com/scratchfoundation/scratch-www.git
synced 2025-02-18 09:00:30 -05:00
Hide project info alerts when switching to editor
This commit is contained in:
parent
ace110c59b
commit
78506f82c7
1 changed files with 4 additions and 0 deletions
|
@ -431,6 +431,10 @@ class Preview extends React.Component {
|
||||||
this.props.remixProject();
|
this.props.remixProject();
|
||||||
}
|
}
|
||||||
handleSeeInside () {
|
handleSeeInside () {
|
||||||
|
this.setState({ // Remove any project alerts so they don't show up later
|
||||||
|
showUsernameBlockAlert: false,
|
||||||
|
showCloudDataAlert: false
|
||||||
|
});
|
||||||
this.props.setPlayer(false);
|
this.props.setPlayer(false);
|
||||||
if (this.state.justRemixed || this.state.justShared) {
|
if (this.state.justRemixed || this.state.justShared) {
|
||||||
this.setState({
|
this.setState({
|
||||||
|
|
Loading…
Reference in a new issue