From 2171a01e0d63af64ff1e237f74c9bc7fa52aa787 Mon Sep 17 00:00:00 2001 From: ISA Date: Wed, 16 Oct 2024 08:41:22 +0200 Subject: [PATCH] TDR Messung starten test --- components/modules/Kue705FO.jsx | 17 ++++++++++++++++- 1 file changed, 16 insertions(+), 1 deletion(-) diff --git a/components/modules/Kue705FO.jsx b/components/modules/Kue705FO.jsx index 22171a1..f848767 100644 --- a/components/modules/Kue705FO.jsx +++ b/components/modules/Kue705FO.jsx @@ -22,6 +22,21 @@ function Kue705FO({ } }; + // Funktion für die Aktualisierung (TDR-Aufruf) + const goTDR = () => { + let slot = slotIndex + 1; // Slotnummer (index beginnt bei 0, also +1) + + // Bedingung: wenn der Slot größer als 32 ist, wird die Funktion beendet + if (slot >= 32) { + return; + } + + // Bereite die URL mit den Slot-Informationen vor und leite weiter + let slotFormat = slot < 10 ? `0${slot}` : `${slot}`; + window.location.href = `../CPL?kabelueberwachung.ACP&KTT${slotFormat}=1&slot=${slot}`; + console.log("TDR clicked for Slot", slot); + }; + // Überprüfe, ob ein Modul im Slot vorhanden ist const isModulPresent = kueOnline[slotIndex] === 1; @@ -95,7 +110,7 @@ function Kue705FO({
{/* Icon rechts oben */}