feat: Enable or disable mode button based on configuration
This commit is contained in:
parent
38db3c30c0
commit
f69a0cf498
@ -660,6 +660,13 @@
|
|||||||
this.init_ele();
|
this.init_ele();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
if (this.config.disable_mode_btn == 0 || this.config.disable_mode_btn == undefined) {
|
||||||
|
this.mode_btn.disabled = false;
|
||||||
|
}
|
||||||
|
else{
|
||||||
|
this.mode_btn.disabled = true;
|
||||||
|
}
|
||||||
|
|
||||||
for (let key in this.config.mode){
|
for (let key in this.config.mode){
|
||||||
if (this.avalibale_mode.includes(key) == false)
|
if (this.avalibale_mode.includes(key) == false)
|
||||||
{
|
{
|
||||||
|
Loading…
x
Reference in New Issue
Block a user