Skip to content

armgit / ente

Public Imported from GitHub
0

πŸ’š End-to-end encrypted cloud for everything.

Update public link heading and descriptions

AmanRajSinghMouryaeecfa2dbfaeb
diff --git a/mobile/apps/photos/lib/ui/sharing/share_collection_page.dart b/mobile/apps/photos/lib/ui/sharing/share_collection_page.dart
index ec98e8ca4f..9d73480fc0 100644
--- a/mobile/apps/photos/lib/ui/sharing/share_collection_page.dart
+++ b/mobile/apps/photos/lib/ui/sharing/share_collection_page.dart
@@ -98,13 +98,24 @@ class _ShareCollectionPageState extends State<ShareCollectionPage> {
children.addAll([
const SizedBox(height: Spacing.xxl),
ShareSectionTitle(
- hasUrl
- ? context.strings.publicLinkEnabled
- : context.strings.shareALink,
+ hasUrl ? context.strings.publicLink : context.strings.shareALink,
),
]);
if (hasUrl) {
- children.add(
+ final url = _collection.publicURLs.first;
+ children.addAll([
+ if (!url.isExpired)
+ Padding(
+ padding: const EdgeInsets.only(bottom: Spacing.sm),
+ child: Text(
+ url.enableCollect
+ ? context.strings.publicLinkCollectDescription
+ : context.strings.publicLinkViewDescription,
+ style: TextStyles.mini.copyWith(
+ color: context.componentColors.textLight,
+ ),
+ ),
+ ),
PublicLinkEnabledActionsWidget(
collection: _collection,
sendLinkButtonKey: sendLinkButtonKey,
@@ -126,7 +137,7 @@ class _ShareCollectionPageState extends State<ShareCollectionPage> {
),
],
),
- );
+ ]);
} else {
children.addAll([
ShareMenuItem(
diff --git a/mobile/packages/strings/lib/l10n/arb/strings_en.arb b/mobile/packages/strings/lib/l10n/arb/strings_en.arb
index 1dfb32a756..3d8421b454 100644
--- a/mobile/packages/strings/lib/l10n/arb/strings_en.arb
+++ b/mobile/packages/strings/lib/l10n/arb/strings_en.arb
@@ -3199,8 +3199,11 @@
"folderName": {}
}
},
+ "publicLink": "Public link",
"publicLinkAccessDescription": "Anyone with the link can open the album without an Ente account.",
+ "publicLinkCollectDescription": "Anyone with this link can add photos to your album.",
"publicLinkEnabled": "Public link enabled",
+ "publicLinkViewDescription": "Anyone with this link can access your album.",
"qr": "QR",
"qrCode": "QR code",
"questionmark": "?",