Lastenheft.js in gitignore

This commit is contained in:
ISA
2024-12-17 07:05:22 +01:00
parent de8333ff07
commit 509a80e1a9
3 changed files with 6 additions and 1 deletions

1
.gitignore vendored
View File

@@ -27,3 +27,4 @@ trace
# Ignore specific Next.js build files # Ignore specific Next.js build files
pages-manifest.json pages-manifest.json
nodeMap für 13 am 16.07.2024.zip nodeMap für 13 am 16.07.2024.zip
Lastenheft.js

View File

@@ -1,4 +1,8 @@
import { useEffect } from "react"; import { useEffect } from "react";
// TODO: Bei GMA Datenfeld Rechtsklick „Station öffnen“ funktioniert nicht.
// [x]: 1- Bei GMA Datenfeld Rechtsklick „Station öffnen“ funktioniert nicht.
//FIXME: Add a comment
//BUG: Add a comment
const useGmaMarkersLayer = (map, markers, GisStationsMeasurements, GMA, oms, isVisible) => { const useGmaMarkersLayer = (map, markers, GisStationsMeasurements, GMA, oms, isVisible) => {
let currentMenu = null; // Variable für das aktuelle Kontextmenü let currentMenu = null; // Variable für das aktuelle Kontextmenü

View File

@@ -47,7 +47,7 @@ export const initializeMap = (mapRef, setMap, setOms, setMenuItemAdded, addItems
try { try {
if (clickedElement instanceof L.Marker || clickedElement?.options?.link) { if (clickedElement instanceof L.Marker || clickedElement?.options?.link) {
const link = "/talas5/devices/" + clickedElement.options.link; const link = "http://" + window.location.hostname + "/talas5/devices/" + clickedElement.options.link;
if (link) { if (link) {
console.log("Opening link in a new tab:", link); console.log("Opening link in a new tab:", link);
window.open(link, "_blank"); window.open(link, "_blank");