Skip to content

armgit / ente

Public Imported from GitHub
0

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

Show feed button only for shared albums

Anand Baburajan07187cf6007b
diff --git a/web/apps/photos/src/components/Collections/CollectionHeader.tsx b/web/apps/photos/src/components/Collections/CollectionHeader.tsx
index 523c790772..91356a4d74 100644
--- a/web/apps/photos/src/components/Collections/CollectionHeader.tsx
+++ b/web/apps/photos/src/components/Collections/CollectionHeader.tsx
@@ -703,8 +703,9 @@ const DownloadQuickOption: React.FC<DownloadQuickOptionProps> = ({
</Tooltip>
);
-const showFeedQuickOption = ({ type }: CollectionSummary) =>
- type == "album" || type == "folder";
+const showFeedQuickOption = ({ type, attributes }: CollectionSummary) =>
+ type == "sharedIncoming" ||
+ ((type == "album" || type == "folder") && attributes.has("shared"));
const FeedIcon: React.FC = () => (
<svg