mirror of
https://github.com/Doodle3D/Doodle3D-Transform.git
synced 2024-11-25 15:07:56 +01:00
save zip with date in filename
This commit is contained in:
parent
4a1e69b6f6
commit
71ea685880
@ -83,7 +83,7 @@ export const downloadAllSketches = () => {
|
||||
const dataBlob = await zip.generateAsync({ type: 'blob' });
|
||||
return dispatch({
|
||||
type: ALL_SKETCHES_EXPORT,
|
||||
payload: dispatch(saveAs(dataBlob, 'My Doodles.zip'))
|
||||
payload: dispatch(saveAs(dataBlob, 'Doodle3D-doodles-'+new Date().toISOString().split('T')[0]+'.zip'))
|
||||
}).catch(error => {
|
||||
dispatch(notification.error({ title: 'Saving doodle failed' }));
|
||||
throw error;
|
||||
@ -129,7 +129,7 @@ export const openFileSelector = () => {
|
||||
}
|
||||
};
|
||||
|
||||
await dispatch(actions.files.saveDoodle(fileName, doc, null));
|
||||
await dispatch(actions.files.saveDoodle(name, doc, null));
|
||||
break;
|
||||
}
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user