fix: Initial-Bezeichnung für KÜ "---" entfernt
This commit is contained in:
16
components/modales/kueModal/handlers/firmwareUpdate.js
Normal file
16
components/modales/kueModal/handlers/firmwareUpdate.js
Normal file
@@ -0,0 +1,16 @@
|
||||
const firmwareUpdate = (slot) => {
|
||||
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;
|
||||
Reference in New Issue
Block a user