testing with pug and variables
This commit is contained in:
@@ -13,12 +13,11 @@ module.exports = {
|
||||
}
|
||||
},
|
||||
components: {
|
||||
"axis-control": require("./axis-control"),
|
||||
"path-viewer": require("./path-viewer"),
|
||||
"gcode-viewer": require("./gcode-viewer")
|
||||
},
|
||||
computed:{
|
||||
is_ready: function() {
|
||||
console.log("is_ready: ",this.mach_state);
|
||||
return this.mach_state == "READY";
|
||||
},
|
||||
},
|
||||
|
||||
@@ -3,8 +3,9 @@ script#macros-template(type="text/x-template")
|
||||
h2 Macros
|
||||
input(type="text",id="inputField")
|
||||
button.printVariable(title="print Varibale", @click='print()',
|
||||
style="height:100px;width:100px;font-weight:normal")
|
||||
.fa.fa-folder-download
|
||||
style="height:100px;width:100px;font-weight:normal") PrintVariable
|
||||
button.printVariable(title="print Varibale", @click='print()',
|
||||
style="height:100px;width:200px;font-weight:normal") Print No of Macros
|
||||
button.pure-button(title="Upload a new GCode program.", @click="open",
|
||||
:disabled="!is_ready",style="height:100px;width:100px;font-weight:normal")
|
||||
.fa.fa-folder-open
|
||||
@@ -19,3 +20,4 @@ script#macros-template(type="text/x-template")
|
||||
"finishes.")
|
||||
div(:style="'width:' + (toolpath_progress || 0) * 100 + '%'")
|
||||
label Simulating {{(toolpath_progress || 0) | percent}}
|
||||
gcode-viewer
|
||||
|
||||
Reference in New Issue
Block a user