diff --git a/.env.development b/.env.development index 7febb59..8a100bf 100644 --- a/.env.development +++ b/.env.development @@ -6,6 +6,6 @@ NEXT_PUBLIC_USE_MOCK_BACKEND_LOOP_START=false NEXT_PUBLIC_EXPORT_STATIC=false NEXT_PUBLIC_USE_CGI=false # App-Versionsnummer -NEXT_PUBLIC_APP_VERSION=1.6.515 +NEXT_PUBLIC_APP_VERSION=1.6.516 NEXT_PUBLIC_CPL_MODE=json # json (Entwicklungsumgebung) oder jsSimulatedProd (CPL ->CGI-Interface-Simulator) oder production (CPL-> CGI-Interface Platzhalter) diff --git a/.env.production b/.env.production index 10f6e26..f355899 100644 --- a/.env.production +++ b/.env.production @@ -5,5 +5,5 @@ NEXT_PUBLIC_CPL_API_PATH=/CPL NEXT_PUBLIC_EXPORT_STATIC=true NEXT_PUBLIC_USE_CGI=true # App-Versionsnummer -NEXT_PUBLIC_APP_VERSION=1.6.515 +NEXT_PUBLIC_APP_VERSION=1.6.516 NEXT_PUBLIC_CPL_MODE=production \ No newline at end of file diff --git a/CHANGELOG.md b/CHANGELOG.md index 4a0cf1d..98e6e67 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,3 +1,12 @@ +## [1.6.516] – 2025-07-02 + +- fix: Firmware-Update-Button stabilisiert und Flackern entfernt + +- useAdminAuth aus KueEinstellung entfernt und einmalig in SettingsModalWrapper ausgelagert +- isAdminLoggedIn als Prop übergeben, um ständige Aktualisierungen zu vermeiden +- Button wird jetzt stabil angezeigt ohne console-Logs oder Intervall-Aufrufe + +--- ## [1.6.515] – 2025-07-02 - feat: Firmwareupdate für alle KÜ-Module mit Fortschrittsanzeige und Abschlussmeldung diff --git a/components/main/kabelueberwachung/kue705FO/modals/KueEinstellung.tsx b/components/main/kabelueberwachung/kue705FO/modals/KueEinstellung.tsx index 9614604..82d2221 100644 --- a/components/main/kabelueberwachung/kue705FO/modals/KueEinstellung.tsx +++ b/components/main/kabelueberwachung/kue705FO/modals/KueEinstellung.tsx @@ -1,12 +1,11 @@ "use client"; // components/main/kabelueberwachung/kue705FO/modals/KueEinstellung.tsx -import { useState, useEffect } from "react"; +import { useState } from "react"; import { useDispatch, useSelector } from "react-redux"; import type { RootState } from "../../../../../redux/store"; import handleSave from "../handlers/handleSave"; import handleDisplayEinschalten from "../handlers/handleDisplayEinschalten"; import firmwareUpdate from "../handlers/firmwareUpdate"; -import { useAdminAuth } from "../../../settingsPageComponents/hooks/useAdminAuth"; import ProgressModal from "@/components/main/settingsPageComponents/modals/ProgressModal"; import { toast } from "react-toastify"; import ConfirmModal from "@/components/common/ConfirmModal"; @@ -33,7 +32,6 @@ const memoryIntervalOptions = [ export default function KueEinstellung({ slot, - showModal, isAdminLoggedIn, onClose = () => {}, onModulNameChange, diff --git a/package-lock.json b/package-lock.json index b17ebdf..e5ca83f 100644 --- a/package-lock.json +++ b/package-lock.json @@ -1,12 +1,12 @@ { "name": "cpl-v4", - "version": "1.6.515", + "version": "1.6.516", "lockfileVersion": 3, "requires": true, "packages": { "": { "name": "cpl-v4", - "version": "1.6.515", + "version": "1.6.516", "dependencies": { "@fontsource/roboto": "^5.1.0", "@iconify-icons/ri": "^1.2.10", diff --git a/package.json b/package.json index 86c7e20..e4ae677 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "cpl-v4", - "version": "1.6.515", + "version": "1.6.516", "private": true, "scripts": { "dev": "next dev",