From 6730ba92bee4f8d965f621de7672345ea0694376 Mon Sep 17 00:00:00 2001 From: ISA Date: Tue, 25 Mar 2025 07:57:17 +0100 Subject: [PATCH] =?UTF-8?q?Letzten=20TDR-Messungen=20anzeigen=20in=20Dropd?= =?UTF-8?q?own-Men=C3=BC?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../kue705FO/Charts/TDRChart/TDRChartActionBar.tsx | 2 +- config/webVersion.ts | 2 +- redux/slices/tdmChartSlice.ts | 2 +- redux/types/tdmEntryTypes.ts | 6 ++++++ 4 files changed, 9 insertions(+), 3 deletions(-) create mode 100644 redux/types/tdmEntryTypes.ts diff --git a/components/main/kabelueberwachung/kue705FO/Charts/TDRChart/TDRChartActionBar.tsx b/components/main/kabelueberwachung/kue705FO/Charts/TDRChart/TDRChartActionBar.tsx index 6227c9f..aa11764 100644 --- a/components/main/kabelueberwachung/kue705FO/Charts/TDRChart/TDRChartActionBar.tsx +++ b/components/main/kabelueberwachung/kue705FO/Charts/TDRChart/TDRChartActionBar.tsx @@ -36,7 +36,7 @@ const TDRChartActionBar: React.FC = () => { const handleReset = () => { setSelectedId(null); - dispatch(setSelectedTDRId(null)); + dispatch(setSelectedTDRId(-1)); // z. B. -1 als „Reset“-Kennzeichnung }; return ( diff --git a/config/webVersion.ts b/config/webVersion.ts index 9dbcdd6..0c7064d 100644 --- a/config/webVersion.ts +++ b/config/webVersion.ts @@ -6,5 +6,5 @@ 2: Patch oder Hotfix (Bugfixes oder kleine Änderungen). */ -const webVersion = "1.6.154"; +const webVersion = "1.6.155"; export default webVersion; diff --git a/redux/slices/tdmChartSlice.ts b/redux/slices/tdmChartSlice.ts index 067393f..380a1ea 100644 --- a/redux/slices/tdmChartSlice.ts +++ b/redux/slices/tdmChartSlice.ts @@ -1,7 +1,7 @@ // /redux/slices/tdmChartSlice.ts import { createSlice, PayloadAction } from "@reduxjs/toolkit"; import { fetchAllTDMData } from "../thunks/fetchAllTDMThunk"; -import type { TDMEntry } from "../../types"; // optional, wenn ausgelagert +import type { TDMEntry } from "../types/tdmEntryTypes"; interface TDMChartState { data: TDMEntry[][]; // 32 Arrays (je Slot) diff --git a/redux/types/tdmEntryTypes.ts b/redux/types/tdmEntryTypes.ts new file mode 100644 index 0000000..46f0480 --- /dev/null +++ b/redux/types/tdmEntryTypes.ts @@ -0,0 +1,6 @@ +// redux/types/tdmEntryTypes.ts +export interface TDMEntry { + id: number; + t: string; + // ggf. weitere Felder wie m, p usw. +}