Skip to content

armgit / ente

Public Imported from GitHub
0

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

chore(fileActions):added-unfavorite-to-favorites-right-click-album

Aswin Asok7b352b24e2f9
diff --git a/web/packages/new/photos/utils/file-actions.ts b/web/packages/new/photos/utils/file-actions.ts
index 58515800a7..0ec92bc3a3 100644
--- a/web/packages/new/photos/utils/file-actions.ts
+++ b/web/packages/new/photos/utils/file-actions.ts
@@ -147,8 +147,10 @@ function getBaseActions(
const actions: FileContextAction[] = [];
- // Favorite button only shown when not in favorites and not in archive
- if (!isUserFavorites && !isArchiveItems) {
+ // Favorite/unfavorite action shown when not in archive.
+ if (isUserFavorites) {
+ actions.push("unfavorite");
+ } else if (!isArchiveItems) {
actions.push("favorite");
}