diff --git a/client/modules/IDE/actions/project.js b/client/modules/IDE/actions/project.js index 2e2bca0b..9055d484 100644 --- a/client/modules/IDE/actions/project.js +++ b/client/modules/IDE/actions/project.js @@ -155,18 +155,20 @@ export function saveProject(selectedFile = null, autosave = false) { if (!autosave) { if (state.ide.justOpenedProject && state.preferences.autosave) { dispatch(showToast(5500)); - dispatch(setToastText('Project saved.')); + dispatch(setToastText('Sketch saved.')); setTimeout(() => dispatch(setToastText('Autosave enabled.')), 1500); dispatch(resetJustOpenedProject()); } else { dispatch(showToast(1500)); - dispatch(setToastText('Project saved.')); + dispatch(setToastText('Sketch saved.')); } } }) .catch((error) => { const { response } = error; dispatch(endSavingProject()); + dispatch(setToastText('Failed to save sketch.')); + dispatch(showToast(1500)); if (response.status === 403) { dispatch(showErrorModal('staleSession')); } else if (response.status === 409) { @@ -195,18 +197,20 @@ export function saveProject(selectedFile = null, autosave = false) { if (!autosave) { if (state.preferences.autosave) { dispatch(showToast(5500)); - dispatch(setToastText('Project saved.')); + dispatch(setToastText('Sketch saved.')); setTimeout(() => dispatch(setToastText('Autosave enabled.')), 1500); dispatch(resetJustOpenedProject()); } else { dispatch(showToast(1500)); - dispatch(setToastText('Project saved.')); + dispatch(setToastText('Sketch saved.')); } } }) .catch((error) => { const { response } = error; dispatch(endSavingProject()); + dispatch(setToastText('Failed to save sketch.')); + dispatch(showToast(1500)); if (response.status === 403) { dispatch(showErrorModal('staleSession')); } else {