WIP: TDR-Chart Anpassungen, Mock-Daten noch aktiv

This commit is contained in:
ISA
2025-03-20 15:42:11 +01:00
parent d5cf14ef87
commit 441f83d4ea
4 changed files with 10 additions and 4 deletions

View File

@@ -7,6 +7,7 @@ import TDRChartActionBar from "./TDRChart/TDRChartActionBar";
import LoopMeasurementChart from "./LoopMeasurementChart/LoopMeasurementChart";
import TDRChart from "./TDRChart/TDRChart";
import { useSelector, useDispatch } from "react-redux";
import { AppDispatch } from "../../../../../redux/store";
import { RootState } from "../../../../../redux/store";
import {
setChartOpen,
@@ -30,7 +31,7 @@ const ChartSwitcher: React.FC<ChartSwitcherProps> = ({
onClose,
slotIndex,
}) => {
const dispatch = useDispatch();
const dispatch = useDispatch<AppDispatch>();
// **Redux-States für aktive Messkurve (TDR oder Schleife)**
const activeMode = useSelector(

View File

@@ -75,7 +75,8 @@ const TDRChart: React.FC<{ isFullScreen: boolean }> = ({ isFullScreen }) => {
tooltip: {
callbacks: {
label: function (context) {
return `${context.raw.m.toFixed(0)}`; // Nur den Wert anzeigen, ohne Icon und Modulnummer
const rawData = context.raw as { m: number };
return `${rawData.m.toFixed(0)}`; // Nur den Wert anzeigen, ohne Icon und Modulnummer
},
},
},

View File

@@ -344,7 +344,11 @@ const Kue705FO: React.FC<Kue705FOProps> = ({
{/* Modal für Messkurve */}
{showChartModal && (
<ChartSwitcher isOpen={showChartModal} onClose={closeChartModal} />
<ChartSwitcher
isOpen={showChartModal}
onClose={closeChartModal}
slotIndex={slotIndex}
/>
)}
</>
) : (

View File

@@ -6,5 +6,5 @@
2: Patch oder Hotfix (Bugfixes oder kleine Änderungen).
*/
const webVersion = "1.6.142";
const webVersion = "1.6.143";
export default webVersion;