fixed cond

This commit is contained in:
sanjayk03-dev
2025-09-21 00:02:29 +05:30
parent 9a347e3406
commit 1b18f2e4ba
2 changed files with 7 additions and 1 deletions

View File

@@ -242,6 +242,12 @@ module.exports = new Vue({
return false;
},
is_easy_adapter_active: function() {
console.log(this.config.settings["easy-adapter"]);
if(this.config.settings && this.config.settings["easy-adapter"] == true) return true;
return false;
},
enable_rotary: function() {
if(this.state["2an"] == 1 || this.state["2an"] == 3) return true;
return false;

View File

@@ -89,7 +89,7 @@ html(lang="en")
v-if="80 <= state.rpi_temp",
title="Raspberry Pi temperature too high.")
.easy-adapter(v-if="config.settings.easy-adapter")
.easy-adapter(v-if="is_easy_adapter_active")
.round-dot
div.easy-adapter-text Easy Adapter