setting button to load origin
This commit is contained in:
1
.gitignore
vendored
1
.gitignore
vendored
@@ -26,3 +26,4 @@ __pycache__
|
||||
*.rej
|
||||
*.elf
|
||||
*.hex
|
||||
.idea/deployment.xml
|
||||
|
||||
@@ -806,6 +806,10 @@ module.exports = {
|
||||
}
|
||||
},
|
||||
|
||||
load_position: function (axis) {
|
||||
console.log(this.config.axes["offset_" + axis]);
|
||||
},
|
||||
|
||||
start: function () {
|
||||
api.put("start");
|
||||
},
|
||||
|
||||
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user