aboutsummaryrefslogtreecommitdiff
path: root/src/fields/Doc.ts
diff options
context:
space:
mode:
authorgeireann <60007097+geireann@users.noreply.github.com>2020-07-26 17:41:01 +0800
committergeireann <60007097+geireann@users.noreply.github.com>2020-07-26 17:41:01 +0800
commitb83a38a3a92c0149562da460ad9c35eaaf3054ec (patch)
tree905f505c47da25601a3bb53b33f0b0a878527a95 /src/fields/Doc.ts
parentb9f77b5f539e7b5f44f11e28bd72fefde34fff97 (diff)
download name update
**not part of pres trails**
Diffstat (limited to 'src/fields/Doc.ts')
-rw-r--r--src/fields/Doc.ts4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/fields/Doc.ts b/src/fields/Doc.ts
index e28f6b7d2..cc90574a2 100644
--- a/src/fields/Doc.ts
+++ b/src/fields/Doc.ts
@@ -595,7 +595,7 @@ export namespace Doc {
var 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");
@@ -607,7 +607,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?
});
}
//