File tree Expand file tree Collapse file tree 1 file changed +4
-0
lines changed
client/modules/IDE/actions Expand file tree Collapse file tree 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) {
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 {
You can’t perform that action at this time.
0 commit comments