From 718851fb7dcf988cccfee9046b3eda77a407c1f5 Mon Sep 17 00:00:00 2001 From: valexi7 <44439515+valexi7@users.noreply.github.com> Date: Sat, 25 Jul 2020 15:19:37 +0300 Subject: 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> --- .../htdocs/luci-static/resources/protocol/modemmanager.js | 13 ++++++++++++- 1 file changed, 12 insertions(+), 1 deletion(-) (limited to 'protocols/luci-proto-modemmanager/htdocs/luci-static/resources') 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'; + } }); -- cgit v1.2.3