π End-to-end encrypted cloud for everything.
Dart 2faandroidauthye2eeencryptionend-to-end-encryptionfluttergolanggoogle-photosgoogle-photos-alternativeiosopensourcephotosprivacyprivacy-toolstypescriptzero-knowledge
Inline
Manav Rathi1afc2e31bf5a
diff --git a/web/apps/photos/src/components/Collections/CollectionShare.tsx b/web/apps/photos/src/components/Collections/CollectionShare.tsxindex a206346f7e..7070835a07 100644--- a/web/apps/photos/src/components/Collections/CollectionShare.tsx+++ b/web/apps/photos/src/components/Collections/CollectionShare.tsx@@ -66,7 +66,6 @@ import {unshareCollection,updateShareableURL,} from "services/collectionService";-import { getDeviceLimitOptions } from "utils/collection";import * as Yup from "yup";interface CollectionShareProps {@@ -1515,7 +1514,7 @@ const ManageDeviceLimit: React.FC<ManageDeviceLimitProps> = ({const { show: showDeviceOptions, props: deviceOptionsVisibilityProps } =useModalVisibility();- const options = useMemo(() => getDeviceLimitOptions(), []);+ const options = useMemo(() => deviceLimitOptions(), []);const updateDeviceLimit = async (newLimit: number) => {return updatePublicShareURLHelper({@@ -1568,6 +1567,12 @@ const ManageDeviceLimit: React.FC<ManageDeviceLimitProps> = ({);};+const deviceLimitOptions = () =>+ [0, 2, 5, 10, 25, 50].map((i) => ({+ label: i == 0 ? t("none") : i.toString(),+ value: i,+ }));+interface ManageDownloadAccessProps {publicShareProp: PublicURL;collection: Collection;diff --git a/web/apps/photos/src/utils/collection.ts b/web/apps/photos/src/utils/collection.tsindex 5e1b46681c..ca9518abdd 100644--- a/web/apps/photos/src/utils/collection.ts+++ b/web/apps/photos/src/utils/collection.ts@@ -183,15 +183,6 @@ async function createCollectionDownloadFolder(return collectionDownloadPath;}-const _intSelectOption = (i: number) => {- const label = i === 0 ? t("none") : i.toString();- return { label, value: i };-};--export function getDeviceLimitOptions() {- return [0, 2, 5, 10, 25, 50].map((i) => _intSelectOption(i));-}-export const changeCollectionVisibility = async (collection: Collection,visibility: ItemVisibility,