diff --git a/client/modules/IDE/actions/project.js b/client/modules/IDE/actions/project.js index 18ad523d..58111f64 100644 --- a/client/modules/IDE/actions/project.js +++ b/client/modules/IDE/actions/project.js @@ -80,7 +80,11 @@ export function saveProject() { files: response.data.files }); dispatch(showToast()); - dispatch(setToastText('Project saved.')); + if (state.preferences.autosave) { + dispatch(setToastText('Autosave enabled.')); + } else { + dispatch(setToastText('Project saved.')); + } }) .catch(response => dispatch({ type: ActionTypes.PROJECT_SAVE_FAIL, diff --git a/client/modules/IDE/pages/IDEView.js b/client/modules/IDE/pages/IDEView.js index 04b36d06..f7bd2599 100644 --- a/client/modules/IDE/pages/IDEView.js +++ b/client/modules/IDE/pages/IDEView.js @@ -127,8 +127,6 @@ class IDEView extends React.Component { logoutUser={this.props.logoutUser} stopSketch={this.props.stopSketch} showShareModal={this.props.showShareModal} - showToast={this.props.showToast} - setToastText={this.props.setToastText} />