diff options
author | anika-ahluwalia <anika.ahluwalia@gmail.com> | 2020-08-05 22:25:44 -0500 |
---|---|---|
committer | anika-ahluwalia <anika.ahluwalia@gmail.com> | 2020-08-05 22:25:44 -0500 |
commit | 2df0503edefde20ba1b3c46c16788effb0a7560c (patch) | |
tree | bac31bc2356e7de4aa1df43b382eb8c957ce969f /src/fields | |
parent | ea855ecda2c3df9e5d0881d43e2fdbceb9dccafc (diff) | |
parent | 6d8dfee38bd39b95396cbc97405516693116b58f (diff) |
merge
Diffstat (limited to 'src/fields')
-rw-r--r-- | src/fields/Doc.ts | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/fields/Doc.ts b/src/fields/Doc.ts index ad6a9ac1d..6163fedbb 100644 --- a/src/fields/Doc.ts +++ b/src/fields/Doc.ts @@ -627,7 +627,7 @@ export namespace Doc { const zip = new JSZip(); - zip.file("doc.json", docString); + zip.file(doc.title + ".json", docString); // // Generate a directory within the Zip file structure // var img = zip.folder("images"); @@ -639,7 +639,7 @@ export namespace Doc { zip.generateAsync({ type: "blob" }) .then((content: any) => { // Force down of the Zip file - saveAs(content, "download.zip"); + saveAs(content, doc.title + ".zip"); // glr: Possibly change the name of the document to match the title? }); } // |