This commit is contained in:
Manav Rathi
2025-06-27 17:17:48 +05:30
parent 72028ec9d2
commit 3f87fd1a5a
3 changed files with 9 additions and 9 deletions

View File

@@ -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,

View File

@@ -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,
});

View File

@@ -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",
]);