conditional rendering pug

This commit is contained in:
sanjayk03-dev
2023-12-30 12:25:30 +05:30
parent b06159cfca
commit 785f97b0d9

View File

@@ -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