π End-to-end encrypted cloud for everything.
Dart 2faandroidauthye2eeencryptionend-to-end-encryptionfluttergolanggoogle-photosgoogle-photos-alternativeiosopensourcephotosprivacyprivacy-toolstypescriptzero-knowledge
[web][photos] Add allow joining album toggle to public link settings
Anand Baburajanfb7a989d6a64
diff --git a/web/apps/photos/src/components/Collections/CollectionShare.tsx b/web/apps/photos/src/components/Collections/CollectionShare.tsxindex 93750b4de8..4c6f25aa39 100644--- a/web/apps/photos/src/components/Collections/CollectionShare.tsx+++ b/web/apps/photos/src/components/Collections/CollectionShare.tsx@@ -1831,6 +1831,11 @@ const ManagePublicShareOptions: React.FC<ManagePublicShareOptionsProps> = ({onUpdate={handlePublicURLUpdate}/><RowButtonDivider />+ <ManageJoinAlbum+ {...{ publicURL }}+ onUpdate={handlePublicURLUpdate}+ />+ <RowButtonDivider /><ManageLinkPassword{...{ publicURL }}onUpdate={handlePublicURLUpdate}@@ -2117,6 +2122,23 @@ const ManageDownloadAccess: React.FC<ManagePublicLinkSettingProps> = ({);};+const ManageJoinAlbum: React.FC<ManagePublicLinkSettingProps> = ({+ publicURL,+ onUpdate,+}) => {+ const handleJoinSetting = () => {+ void onUpdate({ enableJoin: !publicURL.enableJoin });+ };++ return (+ <RowSwitch+ label={t("allow_joining_album")}+ checked={publicURL.enableJoin}+ onClick={handleJoinSetting}+ />+ );+};+const ManageLinkPassword: React.FC<ManagePublicLinkSettingProps> = ({publicURL,onUpdate,diff --git a/web/packages/base/locales/en-US/translation.json b/web/packages/base/locales/en-US/translation.jsonindex 902ca2c677..b77a100603 100644--- a/web/packages/base/locales/en-US/translation.json+++ b/web/packages/base/locales/en-US/translation.json@@ -502,6 +502,7 @@"allow_adding_photos": "Allow adding photos","allow_adding_photos_hint": "Allow people with the link to also add photos to the shared album.","enable_comments": "Comments and reactions",+ "allow_joining_album": "Allow joining album","device_limit": "Device limit","none": "None","link_expiry": "Link expiry",