feat: OPC-UA Status lesbar darstellen
- OPC-UA Zustand wird jetzt als "Server betriebsbereit" oder "Server außer Betrieb" ausgegeben - Unbekannte Werte werden explizit als "Unbekannt" angezeigt - Code-Struktur optimiert für bessere Lesbarkeit
This commit is contained in:
@@ -13,12 +13,19 @@ const NetworkInfo: React.FC = () => {
|
||||
const gateway =
|
||||
useSelector((state: RootState) => state.systemSettings.gateway) ||
|
||||
"Unbekannt";
|
||||
const opcUaZustand =
|
||||
useSelector((state: RootState) => state.opcuaSettings.opcUaZustand) ||
|
||||
"Unbekannt";
|
||||
const opcUaZustandRaw = useSelector(
|
||||
(state: RootState) => state.opcuaSettings.opcUaZustand
|
||||
);
|
||||
const opcUaNodesetName =
|
||||
useSelector((state: RootState) => state.opcuaSettings.opcUaNodesetName) ||
|
||||
"Unbekannt";
|
||||
// OPC-UA Zustand in lesbaren Text umwandeln
|
||||
const opcUaZustand =
|
||||
Number(opcUaZustandRaw) === 1
|
||||
? "Server betriebsbereit"
|
||||
: Number(opcUaZustandRaw) === 0
|
||||
? "Server außer Betrieb"
|
||||
: "Unbekannt";
|
||||
|
||||
return (
|
||||
<div className="w-full flex-direction: row flex">
|
||||
|
||||
@@ -6,5 +6,5 @@
|
||||
2: Patch oder Hotfix (Bugfixes oder kleine Änderungen).
|
||||
|
||||
*/
|
||||
const webVersion = "1.6.129";
|
||||
const webVersion = "1.6.130";
|
||||
export default webVersion;
|
||||
|
||||
Reference in New Issue
Block a user