TDR Messung starten Alert für Rückmeldung

This commit is contained in:
ISA
2024-10-22 12:03:06 +02:00
parent 009a54bd6a
commit 803816bf4b

View File

@@ -136,11 +136,13 @@ function Kue705FO({
let slotFormat = slot < 10 ? `0${slot}` : `${slot}`;
setLoading(true);
alert(`TDR wird für Slot ${slot} gestartet...`);
fetch(`/CPL?Service/KUEdetailTDR.ACP&KTT${slotFormat}=1&slot=${slot}`, {
method: "GET",
})
.then((response) => {
if (response.ok) {
alert(`TDR erfolgreich gestartet für Slot ${slot}`);
console.log("TDR erfolgreich gestartet für Slot", slot);
} else {
console.error("Fehler beim Senden der TDR-Anfrage");