KUEdetail.HTML von settingsModal.jsx entfernt und durch index.html ersetzt

This commit is contained in:
ISA
2024-11-07 07:25:38 +01:00
parent f3abf417c7
commit 35afba0ebb
3 changed files with 5 additions and 5 deletions

View File

@@ -45,7 +45,7 @@ function SettingModal({ showModal, onClose }) {
if (
window.confirm("Sind Sie sicher, dass Sie den CPL neu starten möchten?")
) {
fetch(`CPL?KUEdetail.ACP&BOOT=1`, { method: "GET" }).finally(() => {
fetch(`CPL?index.html&BOOT=1`, { method: "GET" }).finally(() => {
window.location.href = `/wait`; //auf Client-Seite
});
}
@@ -55,7 +55,7 @@ function SettingModal({ showModal, onClose }) {
if (
window.confirm("Sind Sie sicher, dass Sie die Datenbank leeren möchten?")
) {
const clearDbUrl = `CPL?KUEdetail.ACP&DEDB=1`;
const clearDbUrl = `CPL?index.html&DEDB=1`;
fetch(clearDbUrl)
.then((response) => {
@@ -106,7 +106,7 @@ function SettingModal({ showModal, onClose }) {
// Falls Änderungen vorhanden sind, sende die neuen Daten
if (Object.keys(changes).length > 0) {
let url = `CPL?KUEdetail.ACP`;
let url = `CPL?index.html`;
Object.keys(changes).forEach((paramKey) => {
url += `&${paramKey}=${encodeURIComponent(changes[paramKey])}`;

View File

@@ -99,7 +99,8 @@ function Kue705FO({
setLoading(true); // Setze den Ladezustand auf true
alert(`Schleifenmessung wird für Slot ${slot + 1} gestartet...`);
fetch(`/CPL?Service/KUEdetail.HTML&KS_${slotFormat}=1&slot=${slot}`, {
//fetch(`/CPL?Service/KUEdetail.HTML&KS_${slotFormat}=1&slot=${slot}`, {
fetch(`/CPL?index.html&KS_${slotFormat}=1&slot=${slot}`, {
method: "GET",
})
.then((response) => {

View File

@@ -94,7 +94,6 @@ function Kabelueberwachung() {
return (
<div className="bg-gray-100 flex-1 p-6 text-black">
<h1 className="text-2xl mb-4">Kabelüberwachung</h1>
<h2>Aktives Rack: {activeRack}</h2> {/* Zeigt aktives Rack an */}
<div className="mb-4">
{[1, 2, 3, 4].map((rack) => (
<button