π End-to-end encrypted cloud for everything.
Dart 2faandroidauthye2eeencryptionend-to-end-encryptionfluttergolanggoogle-photosgoogle-photos-alternativeiosopensourcephotosprivacyprivacy-toolstypescriptzero-knowledge
Tweaks
Manav Rathi4445ef8aef82
diff --git a/web/apps/photos/src/components/Collections/GalleryBarAndListHeader.tsx b/web/apps/photos/src/components/Collections/GalleryBarAndListHeader.tsxindex 0aaeb27c80..5ce5eddfd8 100644--- a/web/apps/photos/src/components/Collections/GalleryBarAndListHeader.tsx+++ b/web/apps/photos/src/components/Collections/GalleryBarAndListHeader.tsx@@ -123,9 +123,9 @@ export const GalleryBarAndListHeader: React.FC<const isActiveCollectionDownloadInProgress = useCallback(() => {const group = saveGroups.find(- (g) => g.collectionID == activeCollectionID,+ (g) => g.collectionSummaryID === activeCollectionID,);- return group && !isSaveCancelled(group) && !isSaveComplete(group);+ return group && !isSaveComplete(group) && !isSaveCancelled(group);}, [saveGroups, activeCollectionID]);useEffect(() => {diff --git a/web/apps/photos/src/components/DownloadStatusNotifications.tsx b/web/apps/photos/src/components/DownloadStatusNotifications.tsxindex a48afc16cd..9872a858a3 100644--- a/web/apps/photos/src/components/DownloadStatusNotifications.tsx+++ b/web/apps/photos/src/components/DownloadStatusNotifications.tsx@@ -85,12 +85,12 @@ export const DownloadStatusNotifications: React.FC<if (electron) {electron.openDirectory(group.downloadDirPath);} else if (onShowCollection) {- if (group.isHidden) {+ if (group.isHiddenCollectionSummary) {void onShowHiddenSection().then(() => {- onShowCollection(group.collectionID);+ onShowCollection(group.collectionSummaryID);});} else {- onShowCollection(group.collectionID);+ onShowCollection(group.collectionSummaryID);}} else {return undefined;diff --git a/web/packages/gallery/components/utils/save-groups.ts b/web/packages/gallery/components/utils/save-groups.tsindex 3a6fc788dc..f37fd40b69 100644--- a/web/packages/gallery/components/utils/save-groups.ts+++ b/web/packages/gallery/components/utils/save-groups.ts@@ -28,15 +28,15 @@ export interface SaveGroup {*/title: string;/**- * If this save group is associated with a collection, then the ID of the- * collection.+ * If this save group is associated with a {@link CollectionSummary}, then+ * the ID of that collection summary.*/- collectionID?: number;+ collectionSummaryID?: number;/**- * `true` if the collection associated with the save group is a hidden- * collection.+ * `true` if the collection summary associated with the save group is+ * hidden.*/- isHidden?: boolean;+ isHiddenCollectionSummary?: boolean;/*** The path to a directory on the user's file system that was selected by* the user to save the files in when they initiated the download on thediff --git a/web/packages/gallery/services/save.ts b/web/packages/gallery/services/save.tsindex 517388c88f..1eb1701087 100644--- a/web/packages/gallery/services/save.ts+++ b/web/packages/gallery/services/save.ts@@ -54,19 +54,19 @@ export const downloadAndSaveFiles = (* the same name as the collection.*/export const downloadAndSaveCollectionFiles = async (- collectionName: string,- collectionID: number | undefined,+ collectionSummaryName: string,+ collectionSummaryID: number,files: EnteFile[],- isHidden: boolean,+ isHiddenCollectionSummary: boolean,onAddSaveGroup: AddSaveGroup,) =>downloadAndSave(files,- collectionName,+ collectionSummaryName,onAddSaveGroup,- collectionName,- collectionID,- isHidden,+ collectionSummaryName,+ collectionSummaryID,+ isHiddenCollectionSummary,);/**@@ -76,9 +76,9 @@ const downloadAndSave = async (files: EnteFile[],title: string,onAddSaveGroup: AddSaveGroup,- collectionName?: string,- collectionID?: number,- isHidden?: boolean,+ collectionSummaryName?: string,+ collectionSummaryID?: number,+ isHiddenCollectionSummary?: boolean,) => {const electron = globalThis.electron;@@ -89,11 +89,11 @@ const downloadAndSave = async (// The user cancelled on the directory selection dialog.return;}- if (collectionName) {+ if (collectionSummaryName) {downloadDirPath = await mkdirCollectionDownloadFolder(electron,downloadDirPath,- collectionName,+ collectionSummaryName,);}}@@ -103,8 +103,8 @@ const downloadAndSave = async (const updateSaveGroup = onAddSaveGroup({title,- collectionID,- isHidden,+ collectionSummaryID,+ isHiddenCollectionSummary,downloadDirPath,total,canceller,