forked from MapComplete/MapComplete
Fix privacy policy standalone page
This commit is contained in:
parent
10955eb1e8
commit
7151173ea5
4 changed files with 18 additions and 6 deletions
|
|
@ -1,6 +1,6 @@
|
||||||
{
|
{
|
||||||
"name": "mapcomplete",
|
"name": "mapcomplete",
|
||||||
"version": "0.42.5",
|
"version": "0.42.6",
|
||||||
"repository": "https://github.com/pietervdvn/MapComplete",
|
"repository": "https://github.com/pietervdvn/MapComplete",
|
||||||
"description": "A small website to edit OSM easily",
|
"description": "A small website to edit OSM easily",
|
||||||
"bugs": "https://github.com/pietervdvn/MapComplete/issues",
|
"bugs": "https://github.com/pietervdvn/MapComplete/issues",
|
||||||
|
|
|
||||||
|
|
@ -9,6 +9,7 @@
|
||||||
export let state: SpecialVisualizationState
|
export let state: SpecialVisualizationState
|
||||||
const usersettings = UserRelatedState.usersettingsConfig
|
const usersettings = UserRelatedState.usersettingsConfig
|
||||||
const editPrivacy = usersettings.tagRenderings.find(tr => tr.id === "more_privacy")
|
const editPrivacy = usersettings.tagRenderings.find(tr => tr.id === "more_privacy")
|
||||||
|
const isLoggedIn = state.osmConnection.isLoggedIn
|
||||||
</script>
|
</script>
|
||||||
|
|
||||||
<div class="link-underline flex flex-col">
|
<div class="link-underline flex flex-col">
|
||||||
|
|
@ -44,10 +45,9 @@
|
||||||
<li>
|
<li>
|
||||||
<Tr t={t.items.language} />
|
<Tr t={t.items.language} />
|
||||||
</li>
|
</li>
|
||||||
|
|
||||||
<li>
|
<li>
|
||||||
<Tr t={t.items.distanceIndicator} />
|
{#if $isLoggedIn}
|
||||||
</li>
|
|
||||||
<li>
|
|
||||||
<TagRenderingEditable config={editPrivacy} selectedElement={{
|
<TagRenderingEditable config={editPrivacy} selectedElement={{
|
||||||
type: "Feature",
|
type: "Feature",
|
||||||
properties: { id: "settings" },
|
properties: { id: "settings" },
|
||||||
|
|
@ -55,6 +55,9 @@
|
||||||
}}
|
}}
|
||||||
{state}
|
{state}
|
||||||
tags={state.userRelatedState.preferencesAsTags} />
|
tags={state.userRelatedState.preferencesAsTags} />
|
||||||
|
{:else}
|
||||||
|
<Tr t={t.items.distanceIndicator} />
|
||||||
|
{/if}
|
||||||
</li>
|
</li>
|
||||||
</ul>
|
</ul>
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -205,7 +205,7 @@
|
||||||
checkedMappings,
|
checkedMappings,
|
||||||
tags.data
|
tags.data
|
||||||
)
|
)
|
||||||
if (state.featureSwitches.featureSwitchIsDebugging.data) {
|
if (featureSwitchIsDebugging?.data) {
|
||||||
console.log("Constructing change spec from", {
|
console.log("Constructing change spec from", {
|
||||||
freeform: $freeformInput,
|
freeform: $freeformInput,
|
||||||
selectedMapping,
|
selectedMapping,
|
||||||
|
|
|
||||||
|
|
@ -6,6 +6,15 @@
|
||||||
import { Utils } from "../Utils"
|
import { Utils } from "../Utils"
|
||||||
import Add from "../assets/svg/Add.svelte"
|
import Add from "../assets/svg/Add.svelte"
|
||||||
import LanguagePicker from "./InputElement/LanguagePicker.svelte"
|
import LanguagePicker from "./InputElement/LanguagePicker.svelte"
|
||||||
|
import type { SpecialVisualizationState } from "./SpecialVisualization"
|
||||||
|
import { OsmConnection } from "../Logic/Osm/OsmConnection"
|
||||||
|
import UserRelatedState from "../Logic/State/UserRelatedState"
|
||||||
|
|
||||||
|
const osmConnection = new OsmConnection()
|
||||||
|
let state: SpecialVisualizationState = {
|
||||||
|
osmConnection,
|
||||||
|
userRelatedState: new UserRelatedState(osmConnection)
|
||||||
|
}
|
||||||
</script>
|
</script>
|
||||||
|
|
||||||
<div class="flex h-screen flex-col overflow-hidden px-4">
|
<div class="flex h-screen flex-col overflow-hidden px-4">
|
||||||
|
|
@ -17,7 +26,7 @@
|
||||||
<LanguagePicker availableLanguages={Translations.t.privacy.intro.SupportedLanguages()} />
|
<LanguagePicker availableLanguages={Translations.t.privacy.intro.SupportedLanguages()} />
|
||||||
</div>
|
</div>
|
||||||
<div class="h-full overflow-auto border border-gray-500 p-4">
|
<div class="h-full overflow-auto border border-gray-500 p-4">
|
||||||
<PrivacyPolicy />
|
<PrivacyPolicy {state} />
|
||||||
</div>
|
</div>
|
||||||
<a class="button flex" href={Utils.HomepageLink()}>
|
<a class="button flex" href={Utils.HomepageLink()}>
|
||||||
<Add class="h-6 w-6" />
|
<Add class="h-6 w-6" />
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue