From b5213e334a416c36539dc95e3668d3513143ed6c Mon Sep 17 00:00:00 2001 From: ISA Date: Mon, 24 Feb 2025 11:48:28 +0100 Subject: [PATCH] In Dashboard Netzwerk-Informationen von neue Redux Slice holen systemSettings und opcuaSettings Slices --- components/main/uebersicht/NetworkInfo.tsx | 20 +++++++++++++------- config/webVersion.ts | 2 +- 2 files changed, 14 insertions(+), 8 deletions(-) diff --git a/components/main/uebersicht/NetworkInfo.tsx b/components/main/uebersicht/NetworkInfo.tsx index 42743a3..aaafa53 100644 --- a/components/main/uebersicht/NetworkInfo.tsx +++ b/components/main/uebersicht/NetworkInfo.tsx @@ -6,23 +6,29 @@ import { RootState } from "../../../redux/store"; const NetworkInfo: React.FC = () => { // Werte direkt aus Redux holen const ip = - useSelector((state: RootState) => state.variables.ip) || "Unbekannt"; + useSelector((state: RootState) => state.systemSettings.ip) || "Unbekannt"; const subnet = - useSelector((state: RootState) => state.variables.subnet) || "Unbekannt"; + useSelector((state: RootState) => state.systemSettings.subnet) || + "Unbekannt"; const gateway = - useSelector((state: RootState) => state.variables.gateway) || "Unbekannt"; + useSelector((state: RootState) => state.systemSettings.gateway) || + "Unbekannt"; const opcUaZustand = - useSelector((state: RootState) => state.variables.opcUaZustand) || + useSelector((state: RootState) => state.opcuaSettings.opcUaZustand) || "Unbekannt"; const opcUaNodesetName = - useSelector((state: RootState) => state.variables.opcUaNodesetName) || + useSelector((state: RootState) => state.opcuaSettings.opcUaNodesetName) || "Unbekannt"; return (
- IP Address + IP Address

IP-Adresse

{ip}

@@ -50,7 +56,7 @@ const NetworkInfo: React.FC = () => {
-
OPC-UA
+
OPC-UA

Status

{opcUaZustand}

diff --git a/config/webVersion.ts b/config/webVersion.ts index dcdd326..63719e2 100644 --- a/config/webVersion.ts +++ b/config/webVersion.ts @@ -6,5 +6,5 @@ 2: Patch oder Hotfix (Bugfixes oder kleine Änderungen). */ -const webVersion = "1.6.101"; +const webVersion = "1.6.102"; export default webVersion;