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