Skip to content

armgit / ente

Public Imported from GitHub
0

πŸ’š End-to-end encrypted cloud for everything.

update(retry):download-failed-toast-now-shows-count

Aswin Asokb4e8de8066b5
diff --git a/web/apps/photos/src/components/DownloadStatusNotifications.tsx b/web/apps/photos/src/components/DownloadStatusNotifications.tsx
index e9266d0e34..88df1a2774 100644
--- a/web/apps/photos/src/components/DownloadStatusNotifications.tsx
+++ b/web/apps/photos/src/components/DownloadStatusNotifications.tsx
@@ -90,6 +90,7 @@ export const DownloadStatusNotifications: React.FC<
return saveGroups.map((group, index) => {
const hasErrors = isSaveCompleteWithErrors(group);
const canRetry = hasErrors && !!group.retry;
+ const failedTitle = `${t("download_failed")} (${group.failed}/${group.total})`;
return (
<Notification
@@ -102,7 +103,7 @@ export const DownloadStatusNotifications: React.FC<
attributes={{
color: hasErrors ? "critical" : "secondary",
title: hasErrors
- ? t("download_failed")
+ ? failedTitle
: isSaveComplete(group)
? t("download_complete")
: t("downloading_album", { name: group.title }),