mirror of
https://github.com/liamcottle/reticulum-meshchat.git
synced 2026-12-03 05:10:01 -05:00
Add additional interfaces to AddInterfacePage
This commit is contained in:
parent
59eba2ff64
commit
adad97e917
6 changed files with 1731 additions and 334 deletions
|
|
@ -143,6 +143,10 @@ class Utils {
|
|||
|
||||
static isInterfaceEnabled(iface) {
|
||||
const rawValue = iface.enabled ?? iface.interface_enabled;
|
||||
if (rawValue === true) {
|
||||
// when enabled or interface_enabled is True it needs to return true.
|
||||
return true;
|
||||
}
|
||||
const value = rawValue?.toLowerCase();
|
||||
return value === "on" || value === "yes" || value === "true";
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue