Skip to content

armgit / ente

Public Imported from GitHub
0

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

Don't show in archive

Manav Rathi77c1642b3842
diff --git a/web/apps/photos/src/components/pages/gallery/SelectedFileOptions.tsx b/web/apps/photos/src/components/pages/gallery/SelectedFileOptions.tsx
index 3bf5d12c2d..9247b1e81c 100644
--- a/web/apps/photos/src/components/pages/gallery/SelectedFileOptions.tsx
+++ b/web/apps/photos/src/components/pages/gallery/SelectedFileOptions.tsx
@@ -333,17 +333,18 @@ const SelectedFileOptions = ({
<ClockIcon />
</IconButton>
</Tooltip>
- {!isFavoriteCollection && (
- <Tooltip title={t("favorite")}>
- <IconButton
- onClick={handleFileOps(
- FILE_OPS_TYPE.SET_FAVORITE,
- )}
- >
- <FavoriteBorderIcon />
- </IconButton>
- </Tooltip>
- )}
+ {!isFavoriteCollection &&
+ activeCollectionID != ARCHIVE_SECTION && (
+ <Tooltip title={t("favorite")}>
+ <IconButton
+ onClick={handleFileOps(
+ FILE_OPS_TYPE.SET_FAVORITE,
+ )}
+ >
+ <FavoriteBorderIcon />
+ </IconButton>
+ </Tooltip>
+ )}
<Tooltip title={t("download")}>
<IconButton
onClick={handleFileOps(FILE_OPS_TYPE.DOWNLOAD)}