Struktur in components verbessert

This commit is contained in:
Ismail Ali
2025-02-13 19:32:01 +01:00
parent 876af27f5e
commit 1768564d4b
18 changed files with 9 additions and 9 deletions

View File

@@ -0,0 +1,16 @@
const firmwareUpdate = (slot: number) => {
const url = `${window.location.origin}/CPL?/kabelueberwachung.html&KSU${slot}=1`;
fetch(url, { method: "GET" })
.then((response) => {
if (response.ok) {
alert(`Update an ${slot + 1} erfolgreich gestartet!`);
} else {
alert("Fehler beim Update!");
}
})
.catch((error) => {
console.error("Fehler:", error);
alert("Fehler beim Update!");
});
};
export default firmwareUpdate;