From efce134a6cc90d4c3794cac91fc0a9da10fdd3b1 Mon Sep 17 00:00:00 2001 From: Pieter Vander Vennet Date: Mon, 16 Oct 2023 12:54:41 +0200 Subject: [PATCH] Themes: fix cycle rental which dissappears --- assets/themes/cyclofix/cyclofix.json | 6 +++--- src/UI/Popup/AddNewPoint/AddNewPoint.svelte | 14 +++++++------- src/UI/Popup/AddNewPoint/PresetList.svelte | 1 + 3 files changed, 11 insertions(+), 10 deletions(-) diff --git a/assets/themes/cyclofix/cyclofix.json b/assets/themes/cyclofix/cyclofix.json index a99d009c7..5398890f2 100644 --- a/assets/themes/cyclofix/cyclofix.json +++ b/assets/themes/cyclofix/cyclofix.json @@ -68,14 +68,14 @@ "bicycle_rental!=docking_station" ] } - } + }, + "name": null } }, { "#": "All bicycle rental at a high zoom level, to avoid duplicates", "builtin": "bicycle_rental", "override": { - "name": null, "filter": { "sameAs": "bicycle_rental_non_docking" }, @@ -135,4 +135,4 @@ } } ] -} \ No newline at end of file +} diff --git a/src/UI/Popup/AddNewPoint/AddNewPoint.svelte b/src/UI/Popup/AddNewPoint/AddNewPoint.svelte index 9aed2f44a..4d51d5ec0 100644 --- a/src/UI/Popup/AddNewPoint/AddNewPoint.svelte +++ b/src/UI/Popup/AddNewPoint/AddNewPoint.svelte @@ -162,16 +162,16 @@ - {#if $isLoading} -
- - - -
- {:else if $zoom < Constants.minZoomLevelToAddNewPoint} + {#if $zoom < Constants.minZoomLevelToAddNewPoint}
+ {:else if $isLoading} +
+ + + +
{:else if selectedPreset === undefined} we skip, as these presets can never be shown anyway continue }