Skip to content

Commit a20971b

Browse files
committed
[#1393] Change "project" to "sketch" in toast
1 parent e057d71 commit a20971b

File tree

1 file changed

+6
-6
lines changed

1 file changed

+6
-6
lines changed

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

+6-6
Original file line numberDiff line numberDiff line change
@@ -155,19 +155,19 @@ export function saveProject(selectedFile = null, autosave = false) {
155155
if (!autosave) {
156156
if (state.ide.justOpenedProject && state.preferences.autosave) {
157157
dispatch(showToast(5500));
158-
dispatch(setToastText('Project saved.'));
158+
dispatch(setToastText('Sketch saved.'));
159159
setTimeout(() => dispatch(setToastText('Autosave enabled.')), 1500);
160160
dispatch(resetJustOpenedProject());
161161
} else {
162162
dispatch(showToast(1500));
163-
dispatch(setToastText('Project saved.'));
163+
dispatch(setToastText('Sketch saved.'));
164164
}
165165
}
166166
})
167167
.catch((error) => {
168168
const { response } = error;
169169
dispatch(endSavingProject());
170-
dispatch(setToastText('Failed to save project.'));
170+
dispatch(setToastText('Failed to save sketch.'));
171171
dispatch(showToast(1500));
172172
if (response.status === 403) {
173173
dispatch(showErrorModal('staleSession'));
@@ -197,19 +197,19 @@ export function saveProject(selectedFile = null, autosave = false) {
197197
if (!autosave) {
198198
if (state.preferences.autosave) {
199199
dispatch(showToast(5500));
200-
dispatch(setToastText('Project saved.'));
200+
dispatch(setToastText('Sketch saved.'));
201201
setTimeout(() => dispatch(setToastText('Autosave enabled.')), 1500);
202202
dispatch(resetJustOpenedProject());
203203
} else {
204204
dispatch(showToast(1500));
205-
dispatch(setToastText('Project saved.'));
205+
dispatch(setToastText('Sketch saved.'));
206206
}
207207
}
208208
})
209209
.catch((error) => {
210210
const { response } = error;
211211
dispatch(endSavingProject());
212-
dispatch(setToastText('Failed to save project.'));
212+
dispatch(setToastText('Failed to save sketch.'));
213213
dispatch(showToast(1500));
214214
if (response.status === 403) {
215215
dispatch(showErrorModal('staleSession'));

0 commit comments

Comments
 (0)