Merge pull request #556 from ente-io/fix-not-all-dupes-shown
add isDeduplication property to avoid hiding archived files
This commit is contained in:
commit
a463a37456
|
@ -63,6 +63,7 @@ interface Props {
|
|||
activeCollection: number;
|
||||
isSharedCollection?: boolean;
|
||||
enableDownload?: boolean;
|
||||
isDeduplicating?: boolean;
|
||||
}
|
||||
|
||||
type SourceURL = {
|
||||
|
@ -87,6 +88,7 @@ const PhotoFrame = ({
|
|||
activeCollection,
|
||||
isSharedCollection,
|
||||
enableDownload,
|
||||
isDeduplicating,
|
||||
}: Props) => {
|
||||
const [open, setOpen] = useState(false);
|
||||
const [currentIndex, setCurrentIndex] = useState<number>(0);
|
||||
|
@ -202,6 +204,7 @@ const PhotoFrame = ({
|
|||
return false;
|
||||
}
|
||||
if (
|
||||
!isDeduplicating &&
|
||||
activeCollection === ALL_SECTION &&
|
||||
(IsArchived(item) ||
|
||||
archivedCollections?.has(item.collectionID))
|
||||
|
|
|
@ -181,6 +181,7 @@ export default function Deduplicate() {
|
|||
setSelected={setSelected}
|
||||
selected={selected}
|
||||
activeCollection={ALL_SECTION}
|
||||
isDeduplicating
|
||||
/>
|
||||
<DeduplicateOptions
|
||||
setDialogMessage={setDialogMessage}
|
||||
|
|
Loading…
Reference in a new issue