From b6ce4a32e79a12e7e997498c41813f18f4c7c05e Mon Sep 17 00:00:00 2001 From: Pieter Vander Vennet Date: Sun, 21 Jan 2024 03:03:29 +0100 Subject: [PATCH] UX: hide 'move this point' behind login wall --- src/UI/Popup/MoveWizard.svelte | 4 +++- src/UI/SpecialVisualizations.ts | 1 - 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/src/UI/Popup/MoveWizard.svelte b/src/UI/Popup/MoveWizard.svelte index 3de36d7fc..bb58159e7 100644 --- a/src/UI/Popup/MoveWizard.svelte +++ b/src/UI/Popup/MoveWizard.svelte @@ -18,6 +18,7 @@ import Geosearch from "../BigComponents/Geosearch.svelte" import If from "../Base/If.svelte" import Constants from "../../Models/Constants" + import LoginToggle from "../Base/LoginToggle.svelte" export let state: SpecialVisualizationState @@ -49,7 +50,7 @@ let notAllowed = moveWizardState.moveDisallowedReason let currentMapProperties: MapProperties = undefined - + {#if moveWizardState.reasons.length > 0} {#if $notAllowed}
@@ -165,3 +166,4 @@
{/if} {/if} +
diff --git a/src/UI/SpecialVisualizations.ts b/src/UI/SpecialVisualizations.ts index cc2fe9e0c..1d276361c 100644 --- a/src/UI/SpecialVisualizations.ts +++ b/src/UI/SpecialVisualizations.ts @@ -88,7 +88,6 @@ import MaprouletteSetStatus from "./MapRoulette/MaprouletteSetStatus.svelte" import DirectionIndicator from "./Base/DirectionIndicator.svelte" import Img from "./Base/Img" import Qr from "../Utils/Qr" -import { log } from "node:util" class NearbyImageVis implements SpecialVisualization { // Class must be in SpecialVisualisations due to weird cyclical import that breaks the tests