OPC-Clients in settings

This commit is contained in:
ISA
2025-08-12 13:53:47 +02:00
parent bb662bf856
commit 91b76b8e8d
6 changed files with 29 additions and 11 deletions

View File

@@ -11,6 +11,9 @@ export default function OPCUAInterfaceSettings() {
(state: RootState) => state.opcuaSettingsSlice
);
// Anzahl der aktuellen OPC-Clients (Mock, bis Backend liefert)
const opcUaActiveClientCount = opcuaSettings.opcUaActiveClientCount ?? 3; // 3 als Beispielwert
// Lokale Zustände für das neue Benutzerformular
const [nodesetName, setNodesetName] = useState(
@@ -88,16 +91,26 @@ export default function OPCUAInterfaceSettings() {
disabled={opcuaSettings.isEnabled} // Disable input when server is enabled
/>
{/*
<button
onClick={handleNodesetUpdate}
className="px-3 py-1 bg-littwin-blue text-white rounded-r-md text-sm"
>
Übernehmen
</button>
<button
onClick={handleNodesetUpdate}
className="px-3 py-1 bg-littwin-blue text-white rounded-r-md text-sm"
>
Übernehmen
</button>
*/}
</div>
</div>
{/* ✅ Anzahl der aktuellen OPC-Clients */}
<div className="mb-3">
<label className="block font-medium text-sm mb-1">
Aktuelle OPC-Clients
</label>
<div className="p-1 border border-gray-300 rounded-md bg-white text-sm">
{opcUaActiveClientCount}
</div>
</div>
{/* ✅ Benutzerverwaltung */}
{/*