We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 01f493f commit 3ede51fCopy full SHA for 3ede51f
src/containers/gui.jsx
@@ -72,6 +72,9 @@ class GUI extends React.Component {
72
// At this time the project view in www doesn't need to know when a project is unloaded
73
this.props.onProjectLoaded();
74
}
75
+ if (this.props.shouldStopProject && !prevProps.shouldStopProject) {
76
+ this.props.vm.stopAll();
77
+ }
78
79
render () {
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,
137
telemetryModalVisible: PropTypes.bool,
138
vm: PropTypes.instanceOf(VM).isRequired
139
};
0 commit comments