π End-to-end encrypted cloud for everything.
Dart 2faandroidauthye2eeencryptionend-to-end-encryptionfluttergolanggoogle-photosgoogle-photos-alternativeiosopensourcephotosprivacyprivacy-toolstypescriptzero-knowledge
[web][photos] Hide favorites from collection selector dialogs
Anand Baburajane6a23be37bbf
diff --git a/web/packages/new/photos/components/CollectionSelector.tsx b/web/packages/new/photos/components/CollectionSelector.tsxindex 73eb310867..1a2e2dfef2 100644--- a/web/packages/new/photos/components/CollectionSelector.tsx+++ b/web/packages/new/photos/components/CollectionSelector.tsx@@ -140,17 +140,26 @@ export const CollectionSelector: React.FC<CollectionSelectorProps> = ({if (cs.id === attributes.sourceCollectionSummaryID) {return false;} else if (attributes.action == "add") {- return canAddToCollection(cs);+ return (+ canAddToCollection(cs) && cs.type != "userFavorites"+ );} else if (attributes.action == "upload") {return (- canMoveToCollection(cs) || cs.type == "uncategorized"+ (canMoveToCollection(cs) ||+ cs.type == "uncategorized") &&+ cs.type != "userFavorites");} else if (attributes.action == "restore") {return (- canMoveToCollection(cs) || cs.type == "uncategorized"+ (canMoveToCollection(cs) ||+ cs.type == "uncategorized") &&+ cs.type != "userFavorites");} else {- return canMoveToCollection(cs);+ // "move" and "unhide"+ return (+ canMoveToCollection(cs) && cs.type != "userFavorites"+ );}}).sort((a, b) => a.name.localeCompare(b.name))