From e057d717c176271da18ccc0507768f34b57f9910 Mon Sep 17 00:00:00 2001 From: Sai Jatin K Date: Tue, 23 Jun 2020 22:11:10 +0530 Subject: [PATCH] feature show toast for project save failure #1393 --- client/modules/IDE/actions/project.js | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/client/modules/IDE/actions/project.js b/client/modules/IDE/actions/project.js index 2e2bca0b..7764f28d 100644 --- a/client/modules/IDE/actions/project.js +++ b/client/modules/IDE/actions/project.js @@ -167,6 +167,8 @@ export function saveProject(selectedFile = null, autosave = false) { .catch((error) => { const { response } = error; dispatch(endSavingProject()); + dispatch(setToastText('Failed to save project.')); + dispatch(showToast(1500)); if (response.status === 403) { dispatch(showErrorModal('staleSession')); } else if (response.status === 409) { @@ -207,6 +209,8 @@ export function saveProject(selectedFile = null, autosave = false) { .catch((error) => { const { response } = error; dispatch(endSavingProject()); + dispatch(setToastText('Failed to save project.')); + dispatch(showToast(1500)); if (response.status === 403) { dispatch(showErrorModal('staleSession')); } else {