fix TDR Slot + 1

This commit is contained in:
ISA
2024-10-28 11:25:48 +01:00
parent 5c13254ab9
commit 07a122d34b
2 changed files with 70 additions and 66 deletions

View File

@@ -219,14 +219,14 @@ function Kue705FO({
let slotFormat = slot < 10 ? `0${slot}` : `${slot}`;
setLoading(true);
alert(`TDR wird für Slot ${slot} gestartet...`);
alert(`TDR wird für Slot ${slot + 1} 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);
alert(`TDR erfolgreich gestartet für Slot ${slot + 1}`);
console.log("TDR erfolgreich gestartet für Slot", slot + 1);
} else {
console.error("Fehler beim Senden der TDR-Anfrage");
}