Skip to content

armgit / ente

Public Imported from GitHub
0

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

update(UploadProgressDetails):update-heading-to-prevent-misunderstanding

Aswin Asok36369257eaf1
diff --git a/web/packages/gallery/components/upload-progress-v2/UploadProgressDialog.tsx b/web/packages/gallery/components/upload-progress-v2/UploadProgressDialog.tsx
index d3107617a1..09f07af001 100644
--- a/web/packages/gallery/components/upload-progress-v2/UploadProgressDialog.tsx
+++ b/web/packages/gallery/components/upload-progress-v2/UploadProgressDialog.tsx
@@ -91,13 +91,17 @@ function UploadProgressV2Summary() {
const context = useUploadProgressContext();
const { uploadPhase, percentComplete } = context;
const progress = normalizePercent(percentComplete);
+ const headline =
+ uploadPhase == "readingMetadata"
+ ? uploadStatusText(uploadPhase)
+ : `${progress.toLocaleString()}% uploaded`;
return (
<Box sx={summaryLayoutSx}>
<Stack sx={{ gap: 2, minWidth: 0 }}>
<Stack sx={{ minWidth: 0, gap: "4px" }}>
<Typography component="p" sx={titleTextSx}>
- {progress.toLocaleString()}% uploaded
+ {headline}
</Typography>
<Typography sx={mutedBodySx}>
{uploadCountsText(context)}