File tree Expand file tree Collapse file tree 3 files changed +8
-2
lines changed Expand file tree Collapse file tree 3 files changed +8
-2
lines changed Original file line number Diff line number Diff line change @@ -690,7 +690,7 @@ class MenuBar extends React.Component {
690
690
< div className = { styles . fileGroup } >
691
691
< div
692
692
aria-label = { this . props . intl . formatMessage ( ariaMessages . tutorials ) }
693
- className = { classNames ( styles . menuBarItem , styles . hoverable ) }
693
+ className = { classNames ( styles . menuBarItem , styles . hoverable , 'tutorials-button' ) }
694
694
onClick = { this . props . onOpenTipLibrary }
695
695
>
696
696
< img
Original file line number Diff line number Diff line change @@ -72,6 +72,9 @@ class GUI extends React.Component {
72
72
// At this time the project view in www doesn't need to know when a project is unloaded
73
73
this . props . onProjectLoaded ( ) ;
74
74
}
75
+ if ( this . props . shouldStopProject && ! prevProps . shouldStopProject ) {
76
+ this . props . vm . stopAll ( ) ;
77
+ }
75
78
}
76
79
render ( ) {
77
80
if ( this . props . isError ) {
@@ -130,6 +133,7 @@ GUI.propTypes = {
130
133
onVmInit : PropTypes . func ,
131
134
projectHost : PropTypes . string ,
132
135
projectId : PropTypes . oneOfType ( [ PropTypes . string , PropTypes . number ] ) ,
136
+ shouldStopProject : PropTypes . bool ,
133
137
telemetryModalVisible : PropTypes . bool ,
134
138
vm : PropTypes . instanceOf ( VM ) . isRequired
135
139
} ;
Original file line number Diff line number Diff line change @@ -6,6 +6,7 @@ import {ScratchPaintReducer} from 'scratch-paint';
6
6
import { setFullScreen , setPlayer } from './reducers/mode' ;
7
7
import { remixProject } from './reducers/project-state' ;
8
8
import { setAppElement } from 'react-modal' ;
9
+ import { activateDeck } from './reducers/cards.js' ;
9
10
10
11
const guiReducers = {
11
12
locales : LocalesReducer ,
@@ -27,5 +28,6 @@ export {
27
28
localesInitialState ,
28
29
remixProject ,
29
30
setFullScreen ,
30
- setPlayer
31
+ setPlayer ,
32
+ activateDeck
31
33
} ;
You can’t perform that action at this time.
0 commit comments