Skip to content

armgit / ente

Public Imported from GitHub
0

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

fix(photos):exit-hidden-for-search-and-remove-unused-export

Aswin Asok0e17d8e8ed11
diff --git a/web/apps/photos/src/components/gallery/PhotosNavigationShell.tsx b/web/apps/photos/src/components/gallery/PhotosNavigationShell.tsx
index 534e329264..28311b7442 100644
--- a/web/apps/photos/src/components/gallery/PhotosNavigationShell.tsx
+++ b/web/apps/photos/src/components/gallery/PhotosNavigationShell.tsx
@@ -240,7 +240,7 @@ const HomeButton: React.FC<ButtonishProps> = ({ onClick }) => (
</Tooltip>
);
-export const UploadButton: React.FC<ButtonishProps> = ({ onClick }) => {
+const UploadButton: React.FC<ButtonishProps> = ({ onClick }) => {
const disabled = uploadManager.isUploadInProgress();
const isSmallWidth = useIsSmallWidth();
diff --git a/web/apps/photos/src/pages/gallery.tsx b/web/apps/photos/src/pages/gallery.tsx
index 1de8ec987e..bdd8632e2a 100644
--- a/web/apps/photos/src/pages/gallery.tsx
+++ b/web/apps/photos/src/pages/gallery.tsx
@@ -1379,6 +1379,9 @@ const Page: React.FC = () => {
options?.shouldExitSearchMode ?? true;
dispatch({ type: "exitSearch", shouldExitSearchMode });
} else {
+ if (barMode === "hidden-albums") {
+ dispatch({ type: "showAlbums" });
+ }
dispatch({
type: "enterSearchMode",
searchSuggestion: searchOption.suggestion,