TDR Messung starten test
This commit is contained in:
@@ -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({
|
||||
<div className="relative w-full h-[45px] bg-gray-100 border border-gray-400 flex items-center justify-center mt-3">
|
||||
{/* Icon rechts oben */}
|
||||
<button
|
||||
onClick={() => console.log("Refresh clicked")}
|
||||
onClick={goTDR} // Funktion beim Klick auf den Button aufrufen
|
||||
className="absolute -top-1 -right-1 w-[20px] h-[20px] bg-gray-400 flex items-center justify-center"
|
||||
>
|
||||
<span className="text-white text-[18px]">⟳</span>
|
||||
|
||||
Reference in New Issue
Block a user