Skip to content

armgit / ente

Public Imported from GitHub
0

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

Mirror search mode

Manav Rathie53312304abd
diff --git a/web/apps/photos/src/components/pages/gallery/SelectedFileOptions.tsx b/web/apps/photos/src/components/pages/gallery/SelectedFileOptions.tsx
index d4b405c7e6..d75090e532 100644
--- a/web/apps/photos/src/components/pages/gallery/SelectedFileOptions.tsx
+++ b/web/apps/photos/src/components/pages/gallery/SelectedFileOptions.tsx
@@ -70,12 +70,16 @@ const SelectedFileOptions = ({
isInHiddenSection,
}: Props) => {
const { setDialogMessage } = useContext(AppContext);
+
+ const peopleMode = barMode == "people";
+
const addToCollection = () =>
setCollectionSelectorAttributes({
callback: handleCollectionOps(COLLECTION_OPS_TYPE.ADD),
showNextModal: showCreateCollectionModal(COLLECTION_OPS_TYPE.ADD),
intent: CollectionSelectorIntent.add,
- fromCollection: !isInSearchMode ? activeCollectionID : undefined,
+ fromCollection:
+ !isInSearchMode && !peopleMode ? activeCollectionID : undefined,
});
const trashHandler = () =>
@@ -143,7 +147,8 @@ const SelectedFileOptions = ({
callback: handleCollectionOps(COLLECTION_OPS_TYPE.MOVE),
showNextModal: showCreateCollectionModal(COLLECTION_OPS_TYPE.MOVE),
intent: CollectionSelectorIntent.move,
- fromCollection: !isInSearchMode ? activeCollectionID : undefined,
+ fromCollection:
+ !isInSearchMode && !peopleMode ? activeCollectionID : undefined,
});
};
@@ -157,8 +162,6 @@ const SelectedFileOptions = ({
});
};
- const peopleMode = barMode == "people";
-
return (
<SelectionBar>
<FluidContainer>