diff --git a/langs/en.json b/langs/en.json index 1372e1ae2..6d5b7f788 100644 --- a/langs/en.json +++ b/langs/en.json @@ -723,6 +723,10 @@ "typeTitle": "This is {title}" }, "privacy": { + "browsingHistoryIntro": "MapComplete will save which themes and locations you've previously visited in order to help you quickly go back to those. If you are not logged in, this will be kept on your device. If you are logged in, this can be synced to OpenStreetMap so you can your history on other devices too.", + "browsingHistoryLoggedIn": "Your current settings are:", + "browsingHistoryNotLoggedIn": "Login to change your settings", + "browsingHistoryTitle": "Browsing history", "editingIntro": "When you make a change to the map, this change is recorded on OpenStreetMap and is publicly available to anyone. A changeset made with MapComplete includes the following data:", "editingOutro": "Please refer to the privacy policy on OpenStreetMap.org for detailed information. We'd like to remind you that you can use a fictional name when signing up.", "editingTitle": "When making changes", diff --git a/src/UI/BigComponents/PrivacyPolicy.svelte b/src/UI/BigComponents/PrivacyPolicy.svelte index 0baeb0525..63e703388 100644 --- a/src/UI/BigComponents/PrivacyPolicy.svelte +++ b/src/UI/BigComponents/PrivacyPolicy.svelte @@ -9,6 +9,10 @@ export let state: SpecialVisualizationState const usersettings = UserRelatedState.usersettingsConfig const editPrivacy = usersettings.tagRenderings.find((tr) => tr.id === "more_privacy") + const editThemeHistory = usersettings.tagRenderings.find((tr) => tr.id === "sync-visited-themes") + const editLocationHistory = usersettings.tagRenderings.find((tr) => tr.id === "sync-visited-locations") + + const isLoggedIn = state.osmConnection.isLoggedIn @@ -65,6 +69,46 @@