fix: call digitalOutputs from _app.tsx to show immediately without delay

This commit is contained in:
ISA
2025-07-08 11:13:25 +02:00
parent 0f233ce6e2
commit 48898fcd09
6 changed files with 17 additions and 5 deletions

View File

@@ -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.560
NEXT_PUBLIC_APP_VERSION=1.6.561
NEXT_PUBLIC_CPL_MODE=json # json (Entwicklungsumgebung) oder jsSimulatedProd (CPL ->CGI-Interface-Simulator) oder production (CPL-> CGI-Interface Platzhalter)

View File

@@ -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.560
NEXT_PUBLIC_APP_VERSION=1.6.561
NEXT_PUBLIC_CPL_MODE=production

View File

@@ -1,3 +1,12 @@
## [1.6.561] 2025-07-08
- fix: sofortige visuelle Aktivierung der Navigationsbuttons beim Klick
- activeLink direkt beim Klick auf Link setzen, statt auf usePathname zu warten
- verbessert visuelles Feedback bei Navigation
- behebt kurze Verzögerung beim Wechsel der aktiven Navigation
---
## [1.6.560] 2025-07-08
- feat: Verwende fetch statt window.location.href für Digitalausgang-Schalteraktionen

4
package-lock.json generated
View File

@@ -1,12 +1,12 @@
{
"name": "cpl-v4",
"version": "1.6.560",
"version": "1.6.561",
"lockfileVersion": 3,
"requires": true,
"packages": {
"": {
"name": "cpl-v4",
"version": "1.6.560",
"version": "1.6.561",
"dependencies": {
"@fontsource/roboto": "^5.1.0",
"@headlessui/react": "^2.2.4",

View File

@@ -1,6 +1,6 @@
{
"name": "cpl-v4",
"version": "1.6.560",
"version": "1.6.561",
"private": true,
"scripts": {
"dev": "next dev",

View File

@@ -15,6 +15,7 @@ import Footer from "@/components/footer/Footer";
// Thunks importieren
import { getKueDataThunk } from "@/redux/thunks/getKueDataThunk";
import { getAnalogInputsThunk } from "@/redux/thunks/getAnalogInputsThunk";
import { getDigitalOutputsThunk } from "@/redux/thunks/getDigitalOutputsThunk";
import { getAnalogInputsHistoryThunk } from "@/redux/thunks/getAnalogInputsHistoryThunk";
import { getLast20MessagesThunk } from "@/redux/thunks/getLast20MessagesThunk";
import { getOpcUaSettingsThunk } from "@/redux/thunks/getOpcUaSettingsThunk";
@@ -83,6 +84,8 @@ function AppContent({
dispatch(getKueDataThunk());
} else if (pathname.includes("analogInputs")) {
dispatch(getAnalogInputsThunk());
} else if (pathname.includes("digitalOutputs")) {
dispatch(getDigitalOutputsThunk());
} else if (pathname.includes("analogHistory")) {
dispatch(getAnalogInputsHistoryThunk());
} else if (pathname.includes("dashboard")) {