Skip to content

Commit

Permalink
feat: Added "calibrate" button to BedMeshCard (#1182)
Browse files Browse the repository at this point in the history
Signed-off-by: Nathan Meulenberg <[email protected]>
  • Loading branch information
BillyNate authored Sep 23, 2023
1 parent 9465a50 commit 899c95c
Showing 1 changed file with 14 additions and 0 deletions.
14 changes: 14 additions & 0 deletions src/components/widgets/bedmesh/BedMeshCard.vue
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,16 @@
v-if="!fullScreen"
#menu
>
<app-btn
small
class="ms-1 my-1"
:loading="hasWait($waits.onMeshCalibrate)"
:disabled="printerBusy || !allHomed"
@click="calibrate()"
>
{{ $t('app.general.btn.calibrate') }}
</app-btn>

<app-btn
color=""
fab
Expand Down Expand Up @@ -158,6 +168,10 @@ export default class BedMeshCard extends Mixins(StateMixin, ToolheadMixin, Brows
}
}
calibrate () {
this.sendGcode('BED_MESH_CALIBRATE', this.$waits.onMeshCalibrate)
}
get matrix () {
return this.$store.state.mesh.matrix
}
Expand Down

0 comments on commit 899c95c

Please sign in to comment.