Rename
This commit is contained in:
@@ -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,
|
||||
|
||||
@@ -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,
|
||||
});
|
||||
|
||||
@@ -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",
|
||||
]);
|
||||
|
||||
Reference in New Issue
Block a user