From 71ea68588085a332493352bddb391b87783a4346 Mon Sep 17 00:00:00 2001 From: Rick Companje Date: Sun, 6 Jun 2021 20:55:28 +0200 Subject: [PATCH] save zip with date in filename --- src/js/actions/files.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/js/actions/files.js b/src/js/actions/files.js index 2319899..c33f200 100644 --- a/src/js/actions/files.js +++ b/src/js/actions/files.js @@ -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; } }