setting button to load origin

This commit is contained in:
sanjayk03-dev
2024-07-23 23:24:11 +05:30
parent 95c05031be
commit eceb3aef7f
3 changed files with 9 additions and 0 deletions

1
.gitignore vendored
View File

@@ -26,3 +26,4 @@ __pycache__
*.rej
*.elf
*.hex
.idea/deployment.xml

View File

@@ -806,6 +806,10 @@ module.exports = {
}
},
load_position: function (axis) {
console.log(this.config.axes["offset_" + axis]);
},
start: function () {
api.put("start");
},

View File

@@ -159,6 +159,10 @@ script#control-view-template(type="text/x-template")
title=`Home {{'${axis}' | upper}} axis.`, style="height:60px;width:60px")
.fa.fa-home
button.pure-button(:disabled="!is_idle", @click=`load_position('${axis}')`,
title=`Load {{'${axis}' | upper}} origin.`, style="height:60px;width:60px")
.fa.fa-home
tr(style="vertical-align: top;")
td