From 3b5c6205464d356d04fa6d0d02d0a3605f48a498 Mon Sep 17 00:00:00 2001 From: Pieter Vander Vennet Date: Tue, 8 Oct 2024 12:48:01 +0200 Subject: [PATCH] UX: move 'open here in different app' to more logical place, make translatable --- langs/en.json | 1 + src/UI/BigComponents/MenuDrawer.svelte | 5 ++++- src/UI/BigComponents/ShareScreen.svelte | 1 - 3 files changed, 5 insertions(+), 2 deletions(-) diff --git a/langs/en.json b/langs/en.json index 70823edba..45e5fb58b 100644 --- a/langs/en.json +++ b/langs/en.json @@ -309,6 +309,7 @@ "aboutMapComplete": "About MapComplete", "filter": "Filter data", "moreUtilsTitle": "Discover more", + "openHereDifferentApp": "Open the current location in other applications", "showIntroduction": "Show introduction", "title": "Menu" }, diff --git a/src/UI/BigComponents/MenuDrawer.svelte b/src/UI/BigComponents/MenuDrawer.svelte index 593069b4a..0a7d597b9 100644 --- a/src/UI/BigComponents/MenuDrawer.svelte +++ b/src/UI/BigComponents/MenuDrawer.svelte @@ -43,7 +43,7 @@ import ThemeIntroPanel from "./ThemeIntroPanel.svelte" import Marker from "../Map/Marker.svelte" import LogoutButton from "../Base/LogoutButton.svelte" - import { BoltIcon } from "@babeard/svelte-heroicons/mini" + import { BoltIcon, ShareIcon } from "@babeard/svelte-heroicons/mini" import Copyright from "../../assets/svg/Copyright.svelte" import Pencil from "../../assets/svg/Pencil.svelte" import SidebarUnit from "../Base/SidebarUnit.svelte" @@ -60,6 +60,7 @@ let featureSwitches = state.featureSwitches let showHome = featureSwitches.featureSwitchBackToThemeOverview let pg = state.guistate.pageStates + let location = state.mapProperties.location export let onlyLink: boolean const t = Translations.t.general.menu @@ -237,6 +238,8 @@ + + diff --git a/src/UI/BigComponents/ShareScreen.svelte b/src/UI/BigComponents/ShareScreen.svelte index 10f26cc1a..49e90ba7f 100644 --- a/src/UI/BigComponents/ShareScreen.svelte +++ b/src/UI/BigComponents/ShareScreen.svelte @@ -119,7 +119,6 @@