conditional rendering pug
This commit is contained in:
@@ -209,14 +209,17 @@ script#control-view-template(type="text/x-template")
|
|||||||
|
|
||||||
.macros-div
|
.macros-div
|
||||||
.macros-buttons(v-if="this.config.macros!=undefined!=undefined")
|
.macros-buttons(v-if="this.config.macros!=undefined!=undefined")
|
||||||
p there is a macro
|
if {{this.config.macros!=undefined}}
|
||||||
each macros in this.config.macros || {id:0,name:"Macrostest",color:'#434242',gcode:"test.ngc"}
|
p there is a macro
|
||||||
p macros.id
|
each macros in this.config.macros || {id:0,name:"Macrostest",color:'#434242',gcode:"test.ngc"}
|
||||||
p macros.name
|
p macros.id
|
||||||
p macros.color
|
p macros.name
|
||||||
p macros.gcode
|
p macros.color
|
||||||
.submit-macros(v-if="isMacrosPresent()")
|
p macros.gcode
|
||||||
a(href="#macros") Edit Macros
|
.submit-macros(v-if="isMacrosPresent()")
|
||||||
|
a(href="#macros") Edit Macros
|
||||||
|
else
|
||||||
|
p there is no active macros
|
||||||
|
|
||||||
.tabs
|
.tabs
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user