diff --git a/.env.development b/.env.development index 03686c6..7922e58 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.578 +NEXT_PUBLIC_APP_VERSION=1.6.580 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 fb738ad..3d94336 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.578 +NEXT_PUBLIC_APP_VERSION=1.6.580 NEXT_PUBLIC_CPL_MODE=production \ No newline at end of file diff --git a/CHANGELOG.md b/CHANGELOG.md index 7056b27..a3f44df 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,3 +1,13 @@ +## [1.6.580] – 2025-07-10 + +- eslint any type only warn no error + +--- +## [1.6.579] – 2025-07-10 + +- eslint any type only warn no error + +--- ## [1.6.578] – 2025-07-10 - feat: Zoom wird beim Wechsel des Zeitraums im Detail-Chart automatisch zurückgesetzt diff --git a/components/main/system/DetailModal.tsx b/components/main/system/DetailModal.tsx index 155684d..722c517 100644 --- a/components/main/system/DetailModal.tsx +++ b/components/main/system/DetailModal.tsx @@ -1,9 +1,11 @@ "use client"; -import React, { useEffect, useRef } from "react"; +// /components/main/system/DetailModal.tsx +import React, { useEffect, useRef, useState } from "react"; import { Line } from "react-chartjs-2"; -import { useSelector } from "react-redux"; +import { useSelector, useDispatch } from "react-redux"; import { RootState } from "@/redux/store"; import { Listbox } from "@headlessui/react"; +import { setFullScreen } from "@/redux/slices/kabelueberwachungChartSlice"; import { Chart as ChartJS, @@ -144,6 +146,27 @@ export const DetailModal = ({ } }); + const isFullScreen = useSelector( + (state: RootState) => state.kabelueberwachungChartSlice.isFullScreen + ); + const dispatch = useDispatch(); + + // **Vollbildmodus umschalten** + const toggleFullScreen = () => { + dispatch(setFullScreen(!isFullScreen)); + setTimeout(() => { + chartRef.current?.resize(); + }, 50); + }; + + const handleClose = () => { + dispatch({ + type: "kabelueberwachungChartSlice/setFullScreen", + payload: false, + }); // Beim Schließen zurücksetzen + onClose(); + }; + useEffect(() => { const loadZoomPlugin = async () => { if (typeof window !== "undefined") { @@ -183,14 +206,40 @@ export const DetailModal = ({ return (