made label reactive
This commit is contained in:
@@ -243,9 +243,17 @@ module.exports = new Vue({
|
|||||||
},
|
},
|
||||||
|
|
||||||
is_easy_adapter_active: function() {
|
is_easy_adapter_active: function() {
|
||||||
console.log(this.config.settings["easy-adapter"]);
|
// Access the property directly to make it reactive
|
||||||
if(this.config.settings && this.config.settings["easy-adapter"] == true) return true;
|
// Vue 1 will track this dependency and re-evaluate when the property changes
|
||||||
return true;
|
if(!this.config.settings) {
|
||||||
|
return false;
|
||||||
|
}
|
||||||
|
|
||||||
|
// Explicitly access the easy-adapter property to establish reactivity
|
||||||
|
const easyAdapterValue = this.config.settings["easy-adapter"];
|
||||||
|
|
||||||
|
// Return true only if explicitly set to true
|
||||||
|
return easyAdapterValue === true;
|
||||||
},
|
},
|
||||||
|
|
||||||
enable_rotary: function() {
|
enable_rotary: function() {
|
||||||
|
|||||||
Reference in New Issue
Block a user