Skip to content

armgit / ente

Public Imported from GitHub
0

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

Show privacy notice for trip layout option

anandbaburajan1dec167df6c3
diff --git a/web/apps/photos/src/components/Collections/CollectionShare.tsx b/web/apps/photos/src/components/Collections/CollectionShare.tsx
index 4ca8f4b301..442f837133 100644
--- a/web/apps/photos/src/components/Collections/CollectionShare.tsx
+++ b/web/apps/photos/src/components/Collections/CollectionShare.tsx
@@ -31,6 +31,7 @@ import {
RowButtonDivider,
RowButtonEndActivityIndicator,
RowButtonGroup,
+ RowButtonGroupHint,
RowButtonGroupTitle,
RowLabel,
RowSwitch,
@@ -1897,7 +1898,7 @@ const ManageLayout: React.FC<ManageLayoutProps> = ({
onRootClose={onRootClose}
title={t("album_layout")}
>
- <Stack sx={{ gap: "32px", py: "20px", px: "8px" }}>
+ <Stack sx={{ py: "20px", px: "8px" }}>
<RowButtonGroup>
{options.map(({ label, value }, index) => (
<React.Fragment key={value}>
@@ -1923,10 +1924,19 @@ const ManageLayout: React.FC<ManageLayoutProps> = ({
</React.Fragment>
))}
</RowButtonGroup>
+ {currentLayout === "trip" && !loadingLayout && (
+ <RowButtonGroupHint>
+ {t("maps_privacy_notice")}
+ </RowButtonGroupHint>
+ )}
{errorMessage && (
<Typography
variant="small"
- sx={{ color: "critical.main", textAlign: "center" }}
+ sx={{
+ color: "critical.main",
+ mt: 0.5,
+ textAlign: "center",
+ }}
>
{errorMessage}
</Typography>
diff --git a/web/packages/base/locales/en-US/translation.json b/web/packages/base/locales/en-US/translation.json
index 22103de6d9..b34534cd5c 100644
--- a/web/packages/base/locales/en-US/translation.json
+++ b/web/packages/base/locales/en-US/translation.json
@@ -701,5 +701,6 @@
"grouped": "Grouped",
"continuous": "Continuous",
"trip": "Trip",
- "album_layout": "Album layout"
+ "album_layout": "Album layout",
+ "maps_privacy_notice": "Approximate coordinates will be sent to privacy conscious third parties like OpenStreetMaps to show the map and location."
}