diff --git a/components/main/kabelueberwachung/kue705FO/modals/KueModal.tsx b/components/main/kabelueberwachung/kue705FO/modals/KueModal.tsx
index 5d16ea8..a77edb0 100644
--- a/components/main/kabelueberwachung/kue705FO/modals/KueModal.tsx
+++ b/components/main/kabelueberwachung/kue705FO/modals/KueModal.tsx
@@ -9,17 +9,24 @@ interface KueModalProps {
showModal: boolean;
onClose: () => void;
slot: number;
- onModulNameChange: (id: string) => void; // NEU!
+ onModulNameChange: (id: string) => void;
}
export default function KueModal({ showModal, onClose, slot }: KueModalProps) {
- const [activeTab, setActiveTab] = useState<"kue" | "tdr" | "knoten">("kue");
-
- useEffect(() => {
- if (showModal) {
- setActiveTab("kue");
+ // 🧠 Tab wird initial nur einmal aus globalem Speicher geladen
+ const [activeTab, setActiveTab] = useState<"kue" | "tdr" | "knoten">(() => {
+ if (typeof window !== "undefined" && (window as any).__lastKueTab) {
+ return (window as any).__lastKueTab;
}
- }, [showModal]);
+ return "kue";
+ });
+
+ // 🔁 Bei jeder Tab-Änderung speichern wir ihn global
+ useEffect(() => {
+ if (typeof window !== "undefined") {
+ (window as any).__lastKueTab = activeTab;
+ }
+ }, [activeTab]);
return (
)}
-
{activeTab === "tdr" && }
{activeTab === "knoten" && }
diff --git a/config/webVersion.ts b/config/webVersion.ts
index 822c7a7..4126910 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.253";
+const webVersion = "1.6.254";
export default webVersion;
diff --git a/public/images/OPCUA.jpg b/public/images/OPCUA.jpg
new file mode 100644
index 0000000..0fc0d60
Binary files /dev/null and b/public/images/OPCUA.jpg differ