Skip to content

armgit / ente

Public Imported from GitHub
0

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

Make images on deduplicate selectable

Trekky1253b7ea620373
diff --git a/web/apps/photos/src/components/PhotoFrame.tsx b/web/apps/photos/src/components/PhotoFrame.tsx
index 5ecf943c53..e2c7832d00 100644
--- a/web/apps/photos/src/components/PhotoFrame.tsx
+++ b/web/apps/photos/src/components/PhotoFrame.tsx
@@ -66,6 +66,7 @@ interface Props {
setIsPhotoSwipeOpen?: (value: boolean) => void;
isInHiddenSection?: boolean;
setFilesDownloadProgressAttributesCreator?: SetFilesDownloadProgressAttributesCreator;
+ selectable?: boolean;
}
const PhotoFrame = ({
@@ -86,6 +87,7 @@ const PhotoFrame = ({
setIsPhotoSwipeOpen,
isInHiddenSection,
setFilesDownloadProgressAttributesCreator,
+ selectable,
}: Props) => {
const [open, setOpen] = useState(false);
const [currentIndex, setCurrentIndex] = useState<number>(0);
@@ -277,7 +279,7 @@ const PhotoFrame = ({
file={item}
updateURL={updateURL(index)}
onClick={onThumbnailClick(index)}
- selectable={enableDownload}
+ selectable={selectable}
onSelect={handleSelect(
item.id,
item.ownerID === galleryContext.user?.id,
diff --git a/web/apps/photos/src/pages/deduplicate.tsx b/web/apps/photos/src/pages/deduplicate.tsx
index df8e610ca4..c305feef2c 100644
--- a/web/apps/photos/src/pages/deduplicate.tsx
+++ b/web/apps/photos/src/pages/deduplicate.tsx
@@ -196,6 +196,7 @@ export default function Deduplicate() {
activeCollectionID={ALL_SECTION}
fileToCollectionsMap={fileToCollectionsMap}
collectionNameMap={collectionNameMap}
+ selectable={true}
/>
)}
<DeduplicateOptions
diff --git a/web/apps/photos/src/pages/gallery.tsx b/web/apps/photos/src/pages/gallery.tsx
index 64a9c7d3e0..ff2d054e92 100644
--- a/web/apps/photos/src/pages/gallery.tsx
+++ b/web/apps/photos/src/pages/gallery.tsx
@@ -1195,6 +1195,7 @@ export default function Gallery() {
setFilesDownloadProgressAttributesCreator={
setFilesDownloadProgressAttributesCreator
}
+ selectable={true}
/>
)}
{selected.count > 0 &&
diff --git a/web/apps/photos/src/pages/shared-albums.tsx b/web/apps/photos/src/pages/shared-albums.tsx
index 3b843c8bd8..73c6bc592c 100644
--- a/web/apps/photos/src/pages/shared-albums.tsx
+++ b/web/apps/photos/src/pages/shared-albums.tsx
@@ -562,6 +562,7 @@ export default function PublicCollectionGallery() {
setFilesDownloadProgressAttributesCreator={
setFilesDownloadProgressAttributesCreator
}
+ selectable={downloadEnabled}
/>
{blockingLoad && (
<LoadingOverlay>