From c927c4d0cb8d13373134dabc9a799714b4990add Mon Sep 17 00:00:00 2001 From: ISA Date: Wed, 18 Jun 2025 11:38:54 +0200 Subject: [PATCH] =?UTF-8?q?fix:=20Digitale=20Ausg=C3=A4nge=20Zustand=20,?= =?UTF-8?q?=20Name=20und=20Schalten=20mit=20neuer=20CPL=20Update?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .env.development | 2 +- .env.production | 2 +- components/main/einausgaenge/DigitalOutputsWidget.tsx | 4 +++- package-lock.json | 4 ++-- package.json | 2 +- 5 files changed, 8 insertions(+), 6 deletions(-) diff --git a/.env.development b/.env.development index 0dd838d..dc4ed15 100644 --- a/.env.development +++ b/.env.development @@ -6,5 +6,5 @@ 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.411 +NEXT_PUBLIC_APP_VERSION=1.6.412 diff --git a/.env.production b/.env.production index 33546bc..98ef11e 100644 --- a/.env.production +++ b/.env.production @@ -5,4 +5,4 @@ NEXT_PUBLIC_CPL_API_PATH=/CPL NEXT_PUBLIC_EXPORT_STATIC=true NEXT_PUBLIC_USE_CGI=true # App-Versionsnummer -NEXT_PUBLIC_APP_VERSION=1.6.411 \ No newline at end of file +NEXT_PUBLIC_APP_VERSION=1.6.412 \ No newline at end of file diff --git a/components/main/einausgaenge/DigitalOutputsWidget.tsx b/components/main/einausgaenge/DigitalOutputsWidget.tsx index 96e5aa0..1923e9b 100644 --- a/components/main/einausgaenge/DigitalOutputsWidget.tsx +++ b/components/main/einausgaenge/DigitalOutputsWidget.tsx @@ -25,7 +25,9 @@ export default function DigitalOutputsWidget({ openOutputModal }) { try { if (isCPL) { - window.location.href = `/CPL?digitalOutputs.html&RC${id - 1}`; + window.location.href = `/CPL?digitalOutputs.html&DAS0${id}=${ + updatedOutputs[id - 1].status ? 1 : 0 + }`; } else { await fetch("/api/cpl/updateDigitalOutputsHandler", { method: "POST", diff --git a/package-lock.json b/package-lock.json index 1e1f042..9501138 100644 --- a/package-lock.json +++ b/package-lock.json @@ -1,12 +1,12 @@ { "name": "cpl-v4", - "version": "1.6.411", + "version": "1.6.412", "lockfileVersion": 3, "requires": true, "packages": { "": { "name": "cpl-v4", - "version": "1.6.411", + "version": "1.6.412", "dependencies": { "@fontsource/roboto": "^5.1.0", "@iconify-icons/ri": "^1.2.10", diff --git a/package.json b/package.json index ec2a137..972b97b 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "cpl-v4", - "version": "1.6.411", + "version": "1.6.412", "private": true, "scripts": { "dev": "next dev",