File tree 1 file changed +4
-0
lines changed
client/modules/IDE/actions
1 file changed +4
-0
lines changed Original file line number Diff line number Diff line change @@ -167,6 +167,8 @@ export function saveProject(selectedFile = null, autosave = false) {
167
167
. catch ( ( error ) => {
168
168
const { response } = error ;
169
169
dispatch ( endSavingProject ( ) ) ;
170
+ dispatch ( setToastText ( 'Failed to save project.' ) ) ;
171
+ dispatch ( showToast ( 1500 ) ) ;
170
172
if ( response . status === 403 ) {
171
173
dispatch ( showErrorModal ( 'staleSession' ) ) ;
172
174
} else if ( response . status === 409 ) {
@@ -207,6 +209,8 @@ export function saveProject(selectedFile = null, autosave = false) {
207
209
. catch ( ( error ) => {
208
210
const { response } = error ;
209
211
dispatch ( endSavingProject ( ) ) ;
212
+ dispatch ( setToastText ( 'Failed to save project.' ) ) ;
213
+ dispatch ( showToast ( 1500 ) ) ;
210
214
if ( response . status === 403 ) {
211
215
dispatch ( showErrorModal ( 'staleSession' ) ) ;
212
216
} else {
You can’t perform that action at this time.
0 commit comments