From 68fdbcb7fca19b17ac2aa88b0604f3968d69343b Mon Sep 17 00:00:00 2001 From: Abdullah Atta Date: Fri, 26 Jul 2024 15:21:13 +0500 Subject: [PATCH] web: better status reports when taking backups in background --- apps/web/src/common/index.ts | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) 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 });