diff --git a/.env.development b/.env.development index 712c17b..15b2f38 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.512 +NEXT_PUBLIC_APP_VERSION=1.6.513 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 6b66e22..7671d73 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.512 +NEXT_PUBLIC_APP_VERSION=1.6.513 NEXT_PUBLIC_CPL_MODE=production \ No newline at end of file diff --git a/CHANGELOG.md b/CHANGELOG.md index b67d667..1c32858 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,3 +1,8 @@ +## [1.6.513] – 2025-07-01 + +- feat: alle KÜs Firmware update confirm + +--- ## [1.6.512] – 2025-07-01 - fix: hide Firmware update button if admin not loged in diff --git a/components/main/settingsPageComponents/GeneralSettings.tsx b/components/main/settingsPageComponents/GeneralSettings.tsx index 00626e3..ba12fb7 100644 --- a/components/main/settingsPageComponents/GeneralSettings.tsx +++ b/components/main/settingsPageComponents/GeneralSettings.tsx @@ -13,12 +13,17 @@ import { getSystemSettingsThunk } from "../../../redux/thunks/getSystemSettingsT import handleGeneralSubmit from "./handlers/handleGeneralSubmit"; import handleKueFirmwareUpdate from "@/components/main/settingsPageComponents/handlers/handleKueFirmwareUpdate"; import { useAdminAuth } from "@/components/main/settingsPageComponents/hooks/useAdminAuth"; +import ProgressModal from "@/components/main/settingsPageComponents/modals/ProgressModal"; + +import "react-toastify/dist/ReactToastify.css"; const GeneralSettings: React.FC = () => { const dispatch = useDispatch(); const systemSettings = useSelector( (state: RootState) => state.systemSettingsSlice ); + const [isUpdating, setIsUpdating] = useState(false); + const [progress, setProgress] = useState(0); const { isAdminLoggedIn } = useAdminAuth(true); @@ -143,50 +148,6 @@ const GeneralSettings: React.FC = () => { /> - {/* Admin Login */} - {/* -
- {isAdminLoggedIn ? ( - - ) : ( - <> -
- setUsername(e.target.value)} - /> - setPassword(e.target.value)} - /> - -
- - )} -
- */} - - {/* Feedback */} - {/* You can add feedback here if needed */} - {/* Buttons */}
)} + +