From 025e5d44eb38aaf8a50d0d1c0c1155bb2132c42c Mon Sep 17 00:00:00 2001
From: Lene Wasskog <lene.wasskog@nibio.no>
Date: Wed, 23 Oct 2024 08:49:31 +0200
Subject: [PATCH] feat: New points selected and saved from popup in map (one
 step procedure)

---
 src/main/webapp/js/mapModal.js | 3 +--
 1 file changed, 1 insertion(+), 2 deletions(-)

diff --git a/src/main/webapp/js/mapModal.js b/src/main/webapp/js/mapModal.js
index 4fda7c86..877c042b 100644
--- a/src/main/webapp/js/mapModal.js
+++ b/src/main/webapp/js/mapModal.js
@@ -336,8 +336,7 @@ class MapModal {
 
             submitButton.addEventListener('click', () => {
                 const feature = this.createFeatureForPoint(nameInput.value, parseInt(typeInput.value, 10), parseFloat(longitudeInput.value), parseFloat(latitudeInput.value));
-                this.displaySelectedFeatureInfoControl.updateInfoPanel(feature);
-                newPointFormElement.remove();
+                this.confirmSelection(feature);
             });
         });
     }
-- 
GitLab