run alert closing and button opacity

This commit is contained in:
sanjayk03-dev
2024-01-30 02:45:13 +05:30
parent 362b3605fc
commit a5b6da5f12
2 changed files with 2 additions and 1 deletions

View File

@@ -492,6 +492,7 @@ module.exports = {
},
start_pause: function () {
this.macrosLoading = false;
if (this.state.xx == "RUNNING") {
this.pause();
} else if (this.state.xx == "STOPPING" || this.state.xx == "HOLDING") {

View File

@@ -226,7 +226,7 @@ script#control-view-template(type="text/x-template")
.macros-div(class="present")
button.macros-button(title="Click to run Macros",v-for="(index,macros) in config.macros",
@click="runMacros(index)",:disabled="!is_ready",v-bind:style="{ backgroundColor: macros.color }") {{macros.name}}
@click="runMacros(index)",:disabled="!is_ready",v-bind:style="{ backgroundColor: macros.color;opacity: is_ready ? '1' : '0.7' }") {{macros.name}}
.tabs