[mob] Add album join option for internal users

Co-Authored-By: Claude <noreply@anthropic.com>
This commit is contained in:
Neeraj
2025-09-11 16:50:34 +05:30
parent 8810f88236
commit 42527c0cd5
2 changed files with 29 additions and 1 deletions

View File

@@ -53,6 +53,8 @@ class _ManageSharedLinkWidgetState extends State<ManageSharedLinkWidget> {
widget.collection!.publicURLs.firstOrNull?.enableDownload ?? true;
final isPasswordEnabled =
widget.collection!.publicURLs.firstOrNull?.passwordEnabled ?? false;
final isJoinEnabled =
widget.collection!.publicURLs.firstOrNull?.enableJoin ?? false;
final enteColorScheme = getEnteColorScheme(context);
final PublicURL url = widget.collection!.publicURLs.firstOrNull!;
final String urlValue =
@@ -94,6 +96,31 @@ class _ManageSharedLinkWidgetState extends State<ManageSharedLinkWidget> {
AppLocalizations.of(context).allowAddPhotosDescription,
),
const SizedBox(height: 24),
if (flagService.internalUser)
MenuItemWidget(
key: ValueKey("Allow join $isJoinEnabled"),
captionedTextWidget: const CaptionedTextWidget(
title: "Allow joining album (i)",
),
alignCaptionedTextToLeft: true,
menuItemColor: getEnteColorScheme(context).fillFaint,
trailingWidget: ToggleSwitchWidget(
value: () => isJoinEnabled,
onChanged: () async {
await _updateUrlSettings(
context,
{'enableJoin': !isJoinEnabled},
);
},
),
),
if (flagService.internalUser)
MenuSectionDescriptionWidget(
content: isCollectEnabled
? "Allow people with link to join your album as Collaborator"
: "Allow people with link to join your album as Viewer",
),
if (flagService.internalUser) const SizedBox(height: 24),
MenuItemWidget(
alignCaptionedTextToLeft: true,
captionedTextWidget: CaptionedTextWidget(

View File

@@ -2,4 +2,5 @@
- Laurens: text embedding caching for memories and discover
- Neeraj: (i) Option to send qr for link
- Neeraj: (i) Debug option to enable logViewer
- Neeraj: Potential fix for ios in-app payment
- Neeraj: Potential fix for ios in-app payment
- Claude: (i) Add allow joining album option in manage links