fix: KÜ slotnummer in der Messkurven Modal
This commit is contained in:
@@ -14,7 +14,7 @@ const handleOpenChartModal = (
|
||||
setShowChartModal: Dispatch<SetStateAction<boolean>>,
|
||||
dispatch: ReturnType<typeof useDispatch>,
|
||||
slotIndex: number,
|
||||
activeButton: "Schleife" | "TDR"
|
||||
activeButton: "Schleife" | "TDR" | "ISO"
|
||||
) => {
|
||||
setShowChartModal(true);
|
||||
dispatch(setChartOpen(true));
|
||||
@@ -26,6 +26,8 @@ const handleOpenChartModal = (
|
||||
|
||||
if (activeButton === "TDR") {
|
||||
dispatch(setActiveMode("TDR"));
|
||||
} else if (activeButton === "ISO") {
|
||||
dispatch(setActiveMode("ISO"));
|
||||
} else {
|
||||
dispatch(setActiveMode("Schleife"));
|
||||
}
|
||||
|
||||
@@ -4,7 +4,7 @@ import { goLoop } from "@/utils/goLoop";
|
||||
import { goTDR } from "@/utils/goTDR";
|
||||
|
||||
const handleRefreshClick = (
|
||||
activeButton: "Schleife" | "TDR",
|
||||
activeButton: "Schleife" | "TDR" | "ISO",
|
||||
slotIndex: number,
|
||||
setLoading: Dispatch<SetStateAction<boolean>>
|
||||
) => {
|
||||
@@ -13,6 +13,7 @@ const handleRefreshClick = (
|
||||
} else if (activeButton === "TDR") {
|
||||
goTDR(slotIndex, setLoading);
|
||||
}
|
||||
// ISO has no refresh functionality
|
||||
};
|
||||
|
||||
export default handleRefreshClick;
|
||||
|
||||
Reference in New Issue
Block a user