finxing macros

This commit is contained in:
sanjayk03-dev
2024-01-28 21:07:11 +05:30
parent d791aaaf1b
commit 0f6abc28a0
5 changed files with 12 additions and 4 deletions

View File

@@ -216,7 +216,7 @@ script#control-view-template(type="text/x-template")
.bar(:style="'width:' + (progress || 0) * 100 + '%'")
.macros-div(class="present")
button.macros-button(title="Click to run Macros",v-for="(index,macros) in config.macros",
button.macros-button(title="Click to run Macros",v-for="(index,macros) in getMacros",
@click="runMacros(index)",:disabled="!is_ready",v-bind:style="{ backgroundColor: macros.color }") {{macros.name}}
.tabs

View File

@@ -36,11 +36,11 @@ script#macros-template(type="text/x-template")
.fa.fa-plus
.tabs
template(v-for="(index,macros) in config.macros",:key="index")
template(v-for="(index,macros) in getMacros",:key="index")
input(type="radio",:id="'tab'+index", name="tabs",@click="tab = index.toString()")
label(:for="'tab'+index",style="height:50px;width:100px") Macros {{index+1}}
section.tab-content(v-for="(index,macros) in config.macros",:id="'content'+index" ,v-show="tab == index")
section.tab-content(v-for="(index,macros) in config.macros",:id="'content'+index")
.macros-form
p.title Name
.input-container