Skip to content

A fully open source & end-to-end encrypted note taking alternative to Evernote.

web: better status reports when taking backups in background

Abdullah Atta68fdbcb7fca1
diff --git a/apps/web/src/common/index.ts b/apps/web/src/common/index.ts
index bbdad3349..98b2a97f1 100644
--- a/apps/web/src/common/index.ts
+++ b/apps/web/src/common/index.ts
@@ -134,7 +134,9 @@ export async function createBackup(
if (output.type === "file") {
const file = output;
report({
- text: `Saving file ${file.path}`
+ text: background
+ ? `Creating backup (${file.path})`
+ : `Saving file ${file.path}`
});
controller.enqueue({
path: file.path,
@@ -142,7 +144,9 @@ export async function createBackup(
});
} else if (output.type === "attachment") {
report({
- text: `Saving attachment ${output.hash}`,
+ text: background
+ ? `Creating backup (${output.hash})`
+ : `Saving attachment ${output.hash}`,
total: output.total,
current: output.current
});