Skip to content

armgit / ente

Public Imported from GitHub
0

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

wip empty state

Manav Rathi167c4efc4040
diff --git a/web/apps/photos/src/pages/gallery.tsx b/web/apps/photos/src/pages/gallery.tsx
index 8d617af009..05a3b03577 100644
--- a/web/apps/photos/src/pages/gallery.tsx
+++ b/web/apps/photos/src/pages/gallery.tsx
@@ -1132,6 +1132,12 @@ export default function Gallery() {
return <div></div>;
}
+ const showEmptySectionState =
+ !isInSearchMode &&
+ !isFirstLoad &&
+ !files?.length &&
+ !hiddenFiles?.length;
+
return (
<GalleryContext.Provider
value={{
@@ -1295,12 +1301,10 @@ export default function Gallery() {
open={openWhatsNew}
onClose={() => setOpenWhatsNew(false)}
/>
- {!isInSearchMode &&
- !isFirstLoad &&
- !files?.length &&
- !hiddenFiles?.length &&
- activeCollectionID === ALL_SECTION ? (
+ {showEmptySectionState && activeCollectionID === ALL_SECTION ? (
<GalleryEmptyState openUploader={openUploader} />
+ ) : showEmptySectionState && resolvedBarMode == "people" ? (
+ <div>Empty</div>
) : (
<PhotoFrame
page={PAGES.GALLERY}