Probe rotary dialog box ui fix

This commit is contained in:
sanjayk03-dev
2024-12-09 23:34:50 +05:30
parent edfbadb9bd
commit c88422b646

View File

@@ -39,14 +39,6 @@
return ValidSteps.includes(str); return ValidSteps.includes(str);
} }
const stepLabels: Record<Step, string> = {
None: "",
CheckProbe: "Check probe",
BitDimensions: "Bit dimensions",
PlaceProbeBlock: "Place probe block",
Probe: "Probe",
Done: "Done",
};
const cancelled = writable(false); const cancelled = writable(false);
const userAcknowledged = writable(false); const userAcknowledged = writable(false);
@@ -82,6 +74,15 @@
allowClose: false, allowClose: false,
}; };
const stepLabels: Record<Step, string> = {
None: "",
CheckProbe: "Check probe",
BitDimensions: "Bit dimensions",
PlaceProbeBlock: probeType === "a" ? "Start Probe" : "Place probe block",
Probe: "Probe",
Done: "Done",
};
$: metric = $Config.settings?.units === "METRIC"; $: metric = $Config.settings?.units === "METRIC";
$: cutterDiameterMetric = numberWithUnit $: cutterDiameterMetric = numberWithUnit
.parse(cutterDiameterString) .parse(cutterDiameterString)
@@ -110,7 +111,7 @@
const enableSafety = $Config.settings["probing-prompts"]; const enableSafety = $Config.settings["probing-prompts"];
steps = [ steps = [
enableSafety ? "CheckProbe" : undefined, enableSafety && probeType !== "a" ? "CheckProbe" : undefined,
probeType === "xyz" ? "BitDimensions" : undefined, probeType === "xyz" ? "BitDimensions" : undefined,
enableSafety ? "PlaceProbeBlock" : undefined, enableSafety ? "PlaceProbeBlock" : undefined,
"Probe", "Probe",