Skip to content

Commit e057d71

Browse files
committed
feature show toast for project save failure #1393
1 parent b8ba3b9 commit e057d71

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

Diff for: client/modules/IDE/actions/project.js

+4
Original file line numberDiff line numberDiff line change
@@ -167,6 +167,8 @@ export function saveProject(selectedFile = null, autosave = false) {
167167
.catch((error) => {
168168
const { response } = error;
169169
dispatch(endSavingProject());
170+
dispatch(setToastText('Failed to save project.'));
171+
dispatch(showToast(1500));
170172
if (response.status === 403) {
171173
dispatch(showErrorModal('staleSession'));
172174
} else if (response.status === 409) {
@@ -207,6 +209,8 @@ export function saveProject(selectedFile = null, autosave = false) {
207209
.catch((error) => {
208210
const { response } = error;
209211
dispatch(endSavingProject());
212+
dispatch(setToastText('Failed to save project.'));
213+
dispatch(showToast(1500));
210214
if (response.status === 403) {
211215
dispatch(showErrorModal('staleSession'));
212216
} else {

0 commit comments

Comments
 (0)