From e811cf24d596c48fbcb4baac851bbe1fef6d47c2 Mon Sep 17 00:00:00 2001 From: ISA Date: Wed, 7 May 2025 09:47:57 +0200 Subject: [PATCH] =?UTF-8?q?feat:=20Schlie=C3=9Fen=20Button=20in=20Kabel?= =?UTF-8?q?=C3=BCberwachung=20Modal=20Einstellungen=20eingef=C3=BCgt?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../kue705FO/modals/Knotenpunkte.tsx | 11 ++++++++++- .../kue705FO/modals/KueEinstellung.tsx | 6 ++++++ .../kue705FO/modals/SettingsModalWrapper.tsx | 7 +++---- .../kue705FO/modals/TdrEinstellung.tsx | 6 ++++++ config/webVersion.ts | 2 +- 5 files changed, 26 insertions(+), 6 deletions(-) diff --git a/components/main/kabelueberwachung/kue705FO/modals/Knotenpunkte.tsx b/components/main/kabelueberwachung/kue705FO/modals/Knotenpunkte.tsx index fcfcf59..dafbff0 100644 --- a/components/main/kabelueberwachung/kue705FO/modals/Knotenpunkte.tsx +++ b/components/main/kabelueberwachung/kue705FO/modals/Knotenpunkte.tsx @@ -13,9 +13,10 @@ declare global { interface Props { slot: number; + onClose?: () => void; } -export default function Knotenpunkte({ slot }: Props) { +export default function Knotenpunkte({ slot, onClose }: Props) { const [knotenNamen, setKnotenNamen] = useState(Array(10).fill("")); const [linienNamen, setLinienNamen] = useState(Array(10).fill("")); const [linienLaenge, setLinienLaenge] = useState(Array(10).fill(0)); @@ -113,6 +114,14 @@ export default function Knotenpunkte({ slot }: Props) { )} ))} +
+ +
); } diff --git a/components/main/kabelueberwachung/kue705FO/modals/KueEinstellung.tsx b/components/main/kabelueberwachung/kue705FO/modals/KueEinstellung.tsx index 26be6ca..abd7076 100644 --- a/components/main/kabelueberwachung/kue705FO/modals/KueEinstellung.tsx +++ b/components/main/kabelueberwachung/kue705FO/modals/KueEinstellung.tsx @@ -224,6 +224,12 @@ export default function KueEinstellung({
+ {isAdminLoggedIn && (
@@ -98,7 +95,9 @@ export default function KueModal({ showModal, onClose, slot }: KueModalProps) { {activeTab === "tdr" && ( )} - {activeTab === "knoten" && } + {activeTab === "knoten" && ( + + )}
); diff --git a/components/main/kabelueberwachung/kue705FO/modals/TdrEinstellung.tsx b/components/main/kabelueberwachung/kue705FO/modals/TdrEinstellung.tsx index 7a16659..564d605 100644 --- a/components/main/kabelueberwachung/kue705FO/modals/TdrEinstellung.tsx +++ b/components/main/kabelueberwachung/kue705FO/modals/TdrEinstellung.tsx @@ -240,6 +240,12 @@ export default function TdrEinstellung({ slot, onClose }: Props) {
+