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 */}