WIP: TDR-Chart Anpassungen, Mock-Daten noch aktiv
This commit is contained in:
@@ -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(
|
||||
|
||||
@@ -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
|
||||
},
|
||||
},
|
||||
},
|
||||
|
||||
@@ -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}
|
||||
/>
|
||||
)}
|
||||
</>
|
||||
) : (
|
||||
|
||||
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user