Skip to content

armgit / ente

Public Imported from GitHub
0

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

fix(gallery):hide-archive-albums-from-showing-up

Aswin Asok082c8f9f4672
diff --git a/desktop/changes/hide-archived-albums-from-gallery-bar.md b/desktop/changes/hide-archived-albums-from-gallery-bar.md
new file mode 100644
index 0000000000..25c8618e0e
--- /dev/null
+++ b/desktop/changes/hide-archived-albums-from-gallery-bar.md
@@ -0,0 +1 @@
+- Hide archived albums from the main Gallery album bar.
diff --git a/web/apps/photos/src/components/Collections/GalleryBarAndListHeader.tsx b/web/apps/photos/src/components/Collections/GalleryBarAndListHeader.tsx
index 8979b31066..aad6cc3d9e 100644
--- a/web/apps/photos/src/components/Collections/GalleryBarAndListHeader.tsx
+++ b/web/apps/photos/src/components/Collections/GalleryBarAndListHeader.tsx
@@ -319,7 +319,9 @@ export const GalleryBarAndListHeader: React.FC<
onShowAllAlbums={showAllAlbums}
onShowAllPeople={showAllPeople}
collectionSummaries={sortedCollectionSummaries.filter(
- (cs) => !cs.attributes.has("hideFromCollectionBar"),
+ (cs) =>
+ !cs.attributes.has("hideFromCollectionBar") &&
+ (mode != "albums" || !cs.attributes.has("archived")),
)}
/>