macros ui fix and control view added present and absent class

This commit is contained in:
sanjayk03-dev
2023-12-30 16:24:50 +05:30
parent c0881bd966
commit 9b8e52edaf
4 changed files with 7 additions and 20 deletions

View File

@@ -209,15 +209,11 @@ 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")
.macros-buttons(class="present",v-if="isMacrosPresent")
p there is a active macro
.macros-buttons(v-if="config.macros==undefined")
p there is no macro
.macros-buttons(class ="absent",v-if="!isMacrosPresent")
p there is No macro
.tabs

View File

@@ -15,7 +15,7 @@ script#macros-template(type="text/x-template")
:disabled="!is_ready",style="height:40px;width:130px;font-weight:normal;border-radius:5px") Upload
br
button.submit-macros(title="Save Macros",@click="saveMacros",
style="height:50px;width:140px;font-weight:normal;background-color:#add1ad;color:#fff;border-color:#add1ad;padding-top:5px") Save Macros
style="height:50px;width:140px;font-weight:normal;background-color:#add1ad;color:#fff;border-color:#add1ad;margin-top:15px") Save Macros
button.pure-button(title="Print config.", @click="printConfig",
style="height:50px;width:120px;font-weight:normal;padding-top:5px") print Config