modified probeDialog

This commit is contained in:
sanjayk03-dev
2024-12-20 01:01:20 +05:30
parent 7d225c2b4e
commit 2f753948a9

View File

@@ -39,6 +39,14 @@
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 userAcknowledged = writable(false);
@@ -76,15 +84,6 @@
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";
$: cutterDiameterMetric = numberWithUnit
.parse(cutterDiameterString)
@@ -117,6 +116,10 @@
updateButtons();
}
$: if(probeType === 'a'){
stepLabels["PlaceProbeBlock"] = "Start Probe";
}
async function begin() {
try {
$probingActive = true;
@@ -441,7 +444,7 @@
Place the probe block face up, on the lower-left corner
of your workpiece.
{:else if probeType === "a"}
You are about to start the probing of rotary.
You are about to start the probing of rotary. <br /> <strong>Note: </strong>Position the bit above the probe and attach the probe magnet.
{:else}
Place the probe block face down, with the bit above the
recess.