Skip to content

armgit / ente

Public Imported from GitHub
0

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

related

Manav Rathi46134b3b9a45
diff --git a/web/apps/photos/src/components/pages/gallery/SelectedFileOptions.tsx b/web/apps/photos/src/components/pages/gallery/SelectedFileOptions.tsx
index a876ae4ae3..01d1cf7e87 100644
--- a/web/apps/photos/src/components/pages/gallery/SelectedFileOptions.tsx
+++ b/web/apps/photos/src/components/pages/gallery/SelectedFileOptions.tsx
@@ -85,7 +85,7 @@ const SelectedFileOptions = ({
onCreateCollection: showCreateCollectionModal(
COLLECTION_OPS_TYPE.ADD,
),
- ignoredCollectionID:
+ relatedCollectionID:
isInSearchMode || peopleMode ? undefined : activeCollectionID,
});
@@ -158,7 +158,7 @@ const SelectedFileOptions = ({
onCreateCollection: showCreateCollectionModal(
COLLECTION_OPS_TYPE.MOVE,
),
- ignoredCollectionID:
+ relatedCollectionID:
isInSearchMode || peopleMode ? undefined : activeCollectionID,
});
};
diff --git a/web/packages/new/photos/components/CollectionSelector.tsx b/web/packages/new/photos/components/CollectionSelector.tsx
index e7690be1bb..2d3cd1cb9f 100644
--- a/web/packages/new/photos/components/CollectionSelector.tsx
+++ b/web/packages/new/photos/components/CollectionSelector.tsx
@@ -59,11 +59,10 @@ export interface CollectionSelectorAttributes {
onCancel?: () => void;
/**
* Some actions, like "add" and "move", happen in the context of an existing
- * collection. In such cases, their ID can be set as the
- * {@link ignoredCollectionID} to omit showing them again in the list of
- * collections.
+ * collection. In such cases, the ID of this collection can be set as the
+ * {@link relatedCollectionID} to omit showing it in the list again.
*/
- ignoredCollectionID?: number | undefined;
+ relatedCollectionID?: number | undefined;
}
type CollectionSelectorProps = DialogVisibilityProps & {
@@ -111,7 +110,7 @@ export const CollectionSelector: React.FC<CollectionSelectorProps> = ({
const collections = [...collectionSummaries.values()]
.filter(({ id, type }) => {
- if (id === attributes.ignoredCollectionID) {
+ if (id === attributes.relatedCollectionID) {
return false;
} else if (attributes.action == "add") {
return canAddToCollection(type);