diff --git a/src/components/panels/ToolheadControls/CircleControl.vue b/src/components/panels/ToolheadControls/CircleControl.vue
index 716bff83..2ebfaccb 100644
--- a/src/components/panels/ToolheadControls/CircleControl.vue
+++ b/src/components/panels/ToolheadControls/CircleControl.vue
@@ -1,114 +1,7 @@
-
-
-
+
-
+
@@ -135,20 +28,20 @@ svg a#stepper_off #stepper_off_icon {
-
+
@@ -157,20 +50,20 @@ svg a#stepper_off #stepper_off_icon {
-
+
@@ -179,20 +72,20 @@ svg a#stepper_off #stepper_off_icon {
-
+
@@ -201,35 +94,34 @@ svg a#stepper_off #stepper_off_icon {
-
+
-
-
+
+
+
@@ -241,7 +133,10 @@ svg a#stepper_off #stepper_off_icon {
-
+
-
+
-
+
{{ stepsZ.length >= 0 ? stepsZ[0] : '--' }}
@@ -367,7 +262,7 @@ svg a#stepper_off #stepper_off_icon {
-
+
-
+
-
+
-
+
-
+
{{ stepsXY.length >= 0 ? stepsXY[0] : '--' }}
@@ -617,7 +521,7 @@ svg a#stepper_off #stepper_off_icon {
-
+
@@ -710,10 +614,89 @@ export default class CircleControl extends Mixins(BaseMixin, ControlMixin) {
return Array.from(new Set([...(steps ?? [])])).sort((a, b) => a - b)
}
+ get isPrinting() {
+ return ['printing'].includes(this.printer_state)
+ }
+
+ get stepTextClass() {
+ if (!this.homedAxes.includes('xy') || this.isPrinting) return ['disabled']
+
+ return []
+ }
+
+ get xStepClass() {
+ if (!this.homedAxes.includes('x') || this.isPrinting) return ['disabled']
+
+ return []
+ }
+
+ get yStepClass() {
+ if (!this.homedAxes.includes('y') || this.isPrinting) return ['disabled']
+
+ return []
+ }
+
+ get zStepClass() {
+ if (!this.homedAxes.includes('z') || this.isPrinting) return ['disabled']
+
+ return []
+ }
+
+ get xHomeClass() {
+ let classes = []
+ if (this.homedAxes.includes('x')) classes.push('homed')
+ if (this.isPrinting) classes.push('disabled')
+
+ return classes
+ }
+
+ get yHomeClass() {
+ let classes = []
+ if (this.homedAxes.includes('y')) classes.push('homed')
+ if (this.isPrinting) classes.push('disabled')
+
+ return classes
+ }
+
+ get xyHomeClass() {
+ let classes = []
+ if (this.homedAxes.includes('xy')) classes.push('homed')
+ if (this.isPrinting) classes.push('disabled')
+
+ return classes
+ }
+
+ get xyzHomeClass() {
+ let classes = []
+ if (this.homedAxes.includes('xyz')) classes.push('homed')
+ if (this.isPrinting) classes.push('disabled')
+
+ return classes
+ }
+
+ get zHomeClass() {
+ let classes = []
+ if (this.homedAxes.includes('z')) classes.push('homed')
+ if (this.isPrinting) classes.push('disabled')
+
+ return classes
+ }
+
get colorSpecialButton() {
- if (this.existsQGL) return this.colorQuadGantryLevel
- else if (this.existsZtilt) return this.colorZTilt
- else return 'warning'
+ let classes = []
+ if (this.isPrinting) classes.push('disabled')
+ if (this.existsQGL) classes.push(this.colorQuadGantryLevel)
+ else if (this.existsZtilt) classes.push(this.colorZTilt)
+
+ return classes
+ }
+
+ get motorsOffClass() {
+ let classes = []
+ classes.push(this.homedAxes !== '' ? 'primary' : 'warning')
+ if (this.isPrinting) classes.push('disabled')
+
+ return classes
}
clickSpecialButton() {
@@ -722,3 +705,128 @@ export default class CircleControl extends Mixins(BaseMixin, ControlMixin) {
}
}
+
+