Skip to content

armgit / ente

Public Imported from GitHub
0

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

[web] Keep download notifications visible and fix lint

AswinAsok70be12ee8d73
diff --git a/web/packages/base/components/Notification.tsx b/web/packages/base/components/Notification.tsx
index 2aa7774c46..31e8ee3b3f 100644
--- a/web/packages/base/components/Notification.tsx
+++ b/web/packages/base/components/Notification.tsx
@@ -36,7 +36,7 @@ export interface NotificationAttributes {
type NotificationProps = ModalVisibilityProps & {
attributes: NotificationAttributes | undefined;
- /** A new event restarts the timeout, even when its message is unchanged. */
+ // A new event restarts the timeout, even when its message is unchanged.
notificationID?: number;
keepOpenOnClick?: boolean;
horizontal?: "left" | "right";
diff --git a/web/packages/gallery/components/DownloadStatusNotifications.tsx b/web/packages/gallery/components/DownloadStatusNotifications.tsx
index 23e6ee1bcc..7be80e157b 100644
--- a/web/packages/gallery/components/DownloadStatusNotifications.tsx
+++ b/web/packages/gallery/components/DownloadStatusNotifications.tsx
@@ -107,9 +107,6 @@ export const DownloadStatusNotifications: React.FC<
const hasErrors = isSaveCompleteWithErrors(group);
const isComplete = isSaveComplete(group);
const canRetry = hasErrors && !!group.retry;
- const shouldAutoClose =
- group.total === 1 && isComplete && !hasErrors;
-
const isZipDownload = !group.downloadDirPath && group.total > 1;
const shouldShowZipPart =
isZipDownload &&
@@ -220,7 +217,7 @@ export const DownloadStatusNotifications: React.FC<
})}
open={true}
onClose={createOnClose(group)}
- autoHideDuration={shouldAutoClose ? undefined : null}
+ autoHideDuration={null}
keepOpenOnClick
attributes={{
color: hasErrors ? "critical" : "secondary",