feat: rename backup files to mention their importing capabilities

This commit is contained in:
Baptiste Grob
2020-07-22 17:51:16 +02:00
parent 8b486a66f9
commit 207890dc2f

View File

@@ -31,7 +31,7 @@ export class ArchiveManager {
}
const data = await this.__itemsData(items, keys, authParams);
this.__downloadData(data,
`Standard Notes Encrypted Backup - ${this.__formattedDate()}.txt`);
`Standard Notes Encrypted Backup and Import File - ${this.__formattedDate()}.txt`);
} else {
this.__downloadZippedItems(items);
}
@@ -92,7 +92,7 @@ export class ArchiveManager {
await new Promise((resolve) => {
const blob = new Blob([data], {type: 'text/plain'});
zipWriter.add(
`Standard Notes Backup - ${this.__formattedDate()}.txt`.replace(/:/g, ' '),
'Standard Notes Backup and Import File.txt',
new zip.BlobReader(blob),
resolve
);