@@ -155,18 +155,20 @@ export function saveProject(selectedFile = null, autosave = false) {
155
155
if ( ! autosave ) {
156
156
if ( state . ide . justOpenedProject && state . preferences . autosave ) {
157
157
dispatch ( showToast ( 5500 ) ) ;
158
- dispatch ( setToastText ( 'Project saved.' ) ) ;
158
+ dispatch ( setToastText ( 'Sketch saved.' ) ) ;
159
159
setTimeout ( ( ) => dispatch ( setToastText ( 'Autosave enabled.' ) ) , 1500 ) ;
160
160
dispatch ( resetJustOpenedProject ( ) ) ;
161
161
} else {
162
162
dispatch ( showToast ( 1500 ) ) ;
163
- dispatch ( setToastText ( 'Project saved.' ) ) ;
163
+ dispatch ( setToastText ( 'Sketch saved.' ) ) ;
164
164
}
165
165
}
166
166
} )
167
167
. catch ( ( error ) => {
168
168
const { response } = error ;
169
169
dispatch ( endSavingProject ( ) ) ;
170
+ dispatch ( setToastText ( 'Failed to save sketch.' ) ) ;
171
+ dispatch ( showToast ( 1500 ) ) ;
170
172
if ( response . status === 403 ) {
171
173
dispatch ( showErrorModal ( 'staleSession' ) ) ;
172
174
} else if ( response . status === 409 ) {
@@ -195,18 +197,20 @@ export function saveProject(selectedFile = null, autosave = false) {
195
197
if ( ! autosave ) {
196
198
if ( state . preferences . autosave ) {
197
199
dispatch ( showToast ( 5500 ) ) ;
198
- dispatch ( setToastText ( 'Project saved.' ) ) ;
200
+ dispatch ( setToastText ( 'Sketch saved.' ) ) ;
199
201
setTimeout ( ( ) => dispatch ( setToastText ( 'Autosave enabled.' ) ) , 1500 ) ;
200
202
dispatch ( resetJustOpenedProject ( ) ) ;
201
203
} else {
202
204
dispatch ( showToast ( 1500 ) ) ;
203
- dispatch ( setToastText ( 'Project saved.' ) ) ;
205
+ dispatch ( setToastText ( 'Sketch saved.' ) ) ;
204
206
}
205
207
}
206
208
} )
207
209
. catch ( ( error ) => {
208
210
const { response } = error ;
209
211
dispatch ( endSavingProject ( ) ) ;
212
+ dispatch ( setToastText ( 'Failed to save sketch.' ) ) ;
213
+ dispatch ( showToast ( 1500 ) ) ;
210
214
if ( response . status === 403 ) {
211
215
dispatch ( showErrorModal ( 'staleSession' ) ) ;
212
216
} else {
0 commit comments