WIP: POI Update Modal, Beschreibung und Gerät funktioniert wie erweitet, Typ soll auch den gewählte POI Typ zuerst in dropdown angezeigt wird

This commit is contained in:
ISA
2024-09-13 08:50:10 +02:00
parent 5295dfec62
commit 56f4a585ae
7 changed files with 40 additions and 298 deletions

View File

@@ -109,6 +109,7 @@ export const handleEditPoi = (
idPoi: marker.options.id,
name: marker.options.name,
description: marker.options.description,
idLD: marker.options.idLD,
});
fetchPoiData(marker.options.id);

View File

@@ -55,6 +55,7 @@ export const setupPOIs = async (
id: location.idPoi,
name: location.name,
description: location.description,
idLD: location.idLD,
link: location.link,
});
@@ -82,7 +83,7 @@ export const setupPOIs = async (
`);
marker.on("mouseover", function () {
console.log("Device Name:", deviceName); // Debugging
console.log("Device Name:", marker); // Debugging
handlePoiSelect(
{
id: location.idPoi,
@@ -90,6 +91,7 @@ export const setupPOIs = async (
idPoiTyp: location.idPoiTyp,
typ: poiTypName,
description: location.description,
idLD: location.idLD,
},
setSelectedPoi,
setLocationDeviceData,