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 handleDisplayEinschalten = (slot: number) => {
const url = `/CPL?/kabelueberwachung.html&KSD${slot}=1`;
fetch(url, { method: "GET" })
.then((response) => {
if (response.ok) {
alert(`Display für Slot ${slot + 1} erfolgreich eingeschaltet!`);
} else {
alert("Fehler beim Einschalten des Displays!");
}
})
.catch((error) => {
console.error("Fehler:", error);
alert("Fehler beim Einschalten des Displays!");
});
};
export default handleDisplayEinschalten;