testing with setting var func and pug template

This commit is contained in:
sanjayk03-dev
2023-12-30 15:51:21 +05:30
parent 26d8314ad0
commit c0881bd966
3 changed files with 12 additions and 3 deletions

View File

@@ -203,13 +203,16 @@ module.exports = {
return Math.min(1, p);
},
isMacrosPresent: function(){
return this.config.macros != undefined;
return true;
// if(this.config.macros!=undefined){
// console.log("isMacrosPresent",this.config.macros!=undefined);
// console.log(this.config.macros.length!=0);
// return this.config.macros.length!=0;
// }
// return false;
},
isMacrosAbsent: function(){
return false;
}
},

View File

@@ -209,10 +209,14 @@ script#control-view-template(type="text/x-template")
.macros-div
p Macros
.test-true(v-if="isMacrosPresent")
p true
.test-false(v-if="isMacrosAbsent")
p false`
.macros-buttons(v-if="config.macros!=undefined")
p there is a active macro
p there is a active macro
.macros-buttons(v-if="config.macros==undefined")
p there is no macro
p there is no macro
.tabs

View File

@@ -531,6 +531,8 @@ span.unit
white-space nowrap
.tabs
padding-top 40px
section
min-height 500px
overflow-x hidden