OPC-Clients in settings
This commit is contained in:
@@ -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 */}
|
||||
{/*
|
||||
|
||||
|
||||
Reference in New Issue
Block a user