Skip to content

armgit / ente

Public Imported from GitHub
0

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

Rename

Manav Rathi3f87fd1a5aa9
diff --git a/web/apps/photos/src/components/Collections/CollectionHeader.tsx b/web/apps/photos/src/components/Collections/CollectionHeader.tsx
index 4e8c251d09..ba37199e03 100644
--- a/web/apps/photos/src/components/Collections/CollectionHeader.tsx
+++ b/web/apps/photos/src/components/Collections/CollectionHeader.tsx
@@ -114,7 +114,7 @@ export const CollectionHeader: React.FC<CollectionHeaderProps> = (props) => {
};
const shouldShowOptions = (type: CollectionSummaryType) =>
- type != "all" && type != "archive";
+ type != "all" && type != "archiveItems";
const CollectionHeaderOptions: React.FC<CollectionHeaderProps> = ({
activeCollection,
diff --git a/web/packages/new/photos/components/gallery/reducer.ts b/web/packages/new/photos/components/gallery/reducer.ts
index b11316254c..22a77b07e9 100644
--- a/web/packages/new/photos/components/gallery/reducer.ts
+++ b/web/packages/new/photos/components/gallery/reducer.ts
@@ -1343,8 +1343,8 @@ const deriveNormalCollectionSummaries = (
...pseudoCollectionOptionsForFiles(archiveItemsFiles),
id: PseudoCollectionID.archiveItems,
name: t("section_archive"),
- type: "archive",
- attributes: new Set(["archive"]),
+ type: "archiveItems",
+ attributes: new Set(["archiveItems"]),
coverFile: undefined,
sortPriority: CollectionSummarySortPriority.other,
});
diff --git a/web/packages/new/photos/services/collection-summary.ts b/web/packages/new/photos/services/collection-summary.ts
index 1bb344299d..7611e62d32 100644
--- a/web/packages/new/photos/services/collection-summary.ts
+++ b/web/packages/new/photos/services/collection-summary.ts
@@ -4,19 +4,19 @@ import type { EnteFile } from "ente-media/file";
export type CollectionSummaryType =
| CollectionType
| "all"
- | "archive"
- | "trash"
| "hiddenItems"
| "defaultHidden"
+ | "archiveItems"
+ | "trash"
| "sharedIncoming";
export type CollectionSummaryAttribute =
| CollectionType
| "all"
- | "archive"
- | "trash"
| "hiddenItems"
| "defaultHidden"
+ | "archiveItems"
+ | "trash"
| "shared"
| "sharedOutgoing"
| "sharedIncoming"
@@ -214,7 +214,7 @@ export type CollectionSummarySortPriority =
const systemCSTypes = new Set<CollectionSummaryType>([
"all",
- "archive",
+ "archiveItems",
"trash",
"uncategorized",
"hiddenItems",
@@ -228,7 +228,7 @@ const moveToDisabledCSTypes = new Set<CollectionSummaryType>([
const hideFromCollectionBarCSTypes = new Set<CollectionSummaryType>([
"trash",
- "archive",
+ "archiveItems",
"uncategorized",
"defaultHidden",
]);