Füge Alert für Rückmeldung der Schleifenmessung hinzu.
This commit is contained in:
@@ -162,7 +162,9 @@ function Kue705FO({
|
||||
let slotFormat = slot < 10 ? `0${slot}` : `${slot}`;
|
||||
const apiUrl = process.env.NEXT_PUBLIC_API_BASE_URL;
|
||||
|
||||
setLoading(true);
|
||||
setLoading(true); // Setze den Ladezustand auf true
|
||||
alert(`Schleifenmessung wird für Slot ${slot} gestartet...`);
|
||||
|
||||
fetch(
|
||||
`${apiUrl}/CPL?Service/KUEdetail.HTML&KS_${slotFormat}=1&slot=${slot}`,
|
||||
{
|
||||
@@ -171,15 +173,18 @@ function Kue705FO({
|
||||
)
|
||||
.then((response) => {
|
||||
if (response.ok) {
|
||||
alert(`Schleifenmessung erfolgreich gestartet für Slot ${slot}`);
|
||||
console.log("Schleifenmessung erfolgreich gestartet für Slot", slot);
|
||||
} else {
|
||||
alert("Fehler beim Starten der Schleifenmessung.");
|
||||
console.error("Fehler beim Senden der Schleifen-Anfrage");
|
||||
}
|
||||
})
|
||||
.catch((error) => {
|
||||
alert("Ein Fehler ist aufgetreten.");
|
||||
console.error("Fehler:", error);
|
||||
})
|
||||
.finally(() => setLoading(false));
|
||||
.finally(() => setLoading(false)); // Ladezustand zurücksetzen
|
||||
};
|
||||
|
||||
const handleModulNameChange = (newName) => {
|
||||
|
||||
Reference in New Issue
Block a user