summaryrefslogtreecommitdiffhomepage
path: root/protocols/luci-proto-modemmanager/htdocs/luci-static/resources
diff options
context:
space:
mode:
authorvalexi7 <44439515+valexi7@users.noreply.github.com>2020-07-25 15:19:37 +0300
committervalexi7 <44439515+valexi7@users.noreply.github.com>2020-08-05 22:00:36 +0300
commit718851fb7dcf988cccfee9046b3eda77a407c1f5 (patch)
tree422b645fa962044a97ad1263d272ab2f7a1c61d8 /protocols/luci-proto-modemmanager/htdocs/luci-static/resources
parente8cba39201da29cd272fab101b8bfcad8aef0022 (diff)
luci-proto-modemmanger: add missing proto options
Added options for signal refresh rate and Debugmode. Added logging level option Signed-off-by: valexi7 <44439515+valexi7@users.noreply.github.com> luci-proto-modemmanger: add missing proto options Changed logging level translations according to OpenWRT standards Signed-off-by: valexi7 <44439515+valexi7@users.noreply.github.com>
Diffstat (limited to 'protocols/luci-proto-modemmanager/htdocs/luci-static/resources')
-rw-r--r--protocols/luci-proto-modemmanager/htdocs/luci-static/resources/protocol/modemmanager.js13
1 files changed, 12 insertions, 1 deletions
diff --git a/protocols/luci-proto-modemmanager/htdocs/luci-static/resources/protocol/modemmanager.js b/protocols/luci-proto-modemmanager/htdocs/luci-static/resources/protocol/modemmanager.js
index 646e10a948..ad8cc1484a 100644
--- a/protocols/luci-proto-modemmanager/htdocs/luci-static/resources/protocol/modemmanager.js
+++ b/protocols/luci-proto-modemmanager/htdocs/luci-static/resources/protocol/modemmanager.js
@@ -117,11 +117,22 @@ return network.registerProtocol('modemmanager', {
o.value('ipv6', _('IPv6 only'));
o.default = 'ipv4v6';
+ s.taboption('general', form.Value, 'signalrate', _('Signal refresh rate'));
+
o = s.taboption('advanced', form.Value, 'mtu', _('Override MTU'));
o.placeholder = dev ? (dev.getMTU() || '1500') : '1500';
o.datatype = 'max(9200)';
s.taboption('general', form.Value, 'metric', _('Gateway metric'));
-
+
+ s.taboption('advanced', form.Flag, 'debugmode', _('Enable Debugmode'));
+
+ o = s.taboption('advanced', form.ListValue, 'loglevel', _('Log output level'));
+ o.value('ERR', _('Error'))
+ o.value('WARN', _('Warning'));
+ o.value('INFO', _('Info'));
+ o.value('DEBUG', _('Debug'));
+ o.default = 'ERR';
+
}
});