From 01f493f4db34b9f0875657eda8accbd25bf70d6e Mon Sep 17 00:00:00 2001 From: MiroslavDionisiev Date: Fri, 11 Oct 2024 13:50:37 +0300 Subject: [PATCH 1/2] feat: [UEPR-44] exported redux action and added additional class to tutorials button --- src/components/menu-bar/menu-bar.jsx | 2 +- src/index.js | 4 +++- 2 files changed, 4 insertions(+), 2 deletions(-) diff --git a/src/components/menu-bar/menu-bar.jsx b/src/components/menu-bar/menu-bar.jsx index ab3081775..b70b4fd9c 100644 --- a/src/components/menu-bar/menu-bar.jsx +++ b/src/components/menu-bar/menu-bar.jsx @@ -690,7 +690,7 @@ class MenuBar extends React.Component {
Date: Wed, 16 Oct 2024 15:54:04 +0300 Subject: [PATCH 2/2] feat: [UEPR-44] added ability to stop project when playing --- src/containers/gui.jsx | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/src/containers/gui.jsx b/src/containers/gui.jsx index 2da5c1560..5ddcb9eed 100644 --- a/src/containers/gui.jsx +++ b/src/containers/gui.jsx @@ -72,6 +72,9 @@ class GUI extends React.Component { // At this time the project view in www doesn't need to know when a project is unloaded this.props.onProjectLoaded(); } + if (this.props.shouldStopProject && !prevProps.shouldStopProject) { + this.props.vm.stopAll(); + } } render () { if (this.props.isError) { @@ -130,6 +133,7 @@ GUI.propTypes = { onVmInit: PropTypes.func, projectHost: PropTypes.string, projectId: PropTypes.oneOfType([PropTypes.string, PropTypes.number]), + shouldStopProject: PropTypes.bool, telemetryModalVisible: PropTypes.bool, vm: PropTypes.instanceOf(VM).isRequired };