From 633886b4664f8f982b033851f5dadb106103c016 Mon Sep 17 00:00:00 2001 From: ISA Date: Wed, 11 Sep 2024 15:35:13 +0200 Subject: [PATCH] =?UTF-8?q?delete=20doppelte=20Best=C3=A4tigung=20POI=20wu?= =?UTF-8?q?rde=20erfolgreich=20gel=C3=B6scht.?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- components/PoiUpdateModal.js | 2 +- components/pois/PoiUpdateModal.js | 2 +- store/atoms/polylineLayerVisibleState.js | 7 +++++++ 3 files changed, 9 insertions(+), 2 deletions(-) create mode 100644 store/atoms/polylineLayerVisibleState.js diff --git a/components/PoiUpdateModal.js b/components/PoiUpdateModal.js index 09940017b..07d80b8e6 100644 --- a/components/PoiUpdateModal.js +++ b/components/PoiUpdateModal.js @@ -83,7 +83,7 @@ const PoiUpdateModal = ({ onClose, poiData }) => { method: "DELETE", }); if (response.ok) { - alert("POI wurde erfolgreich gelöscht."); + // alert("POI wurde erfolgreich gelöscht."); onClose(); // Close the modal //Browser neu laden, um die aktualisierte Liste anzuzeigen window.location.reload(); diff --git a/components/pois/PoiUpdateModal.js b/components/pois/PoiUpdateModal.js index a4ad1e579..c2795c80e 100644 --- a/components/pois/PoiUpdateModal.js +++ b/components/pois/PoiUpdateModal.js @@ -54,7 +54,7 @@ const PoiUpdateModal = ({ onClose, poiData, onSubmit }) => { method: "DELETE", }); if (response.ok) { - alert("POI wurde erfolgreich gelöscht."); + //alert("POI wurde erfolgreich gelöscht."); onClose(); window.location.reload(); } else { diff --git a/store/atoms/polylineLayerVisibleState.js b/store/atoms/polylineLayerVisibleState.js new file mode 100644 index 000000000..6988d96af --- /dev/null +++ b/store/atoms/polylineLayerVisibleState.js @@ -0,0 +1,7 @@ +// /sttore/atoms/polylineLayerVisibleState.js +import { atom } from "recoil"; + +export const polylineLayerVisibleState = atom({ + key: "polylineLayerVisibleState", + default: true, // Standardmäßig auf sichtbar setzen +});