luci-proto-ncm: rename `service` option to `mode`
authorJo-Philipp Wich <jo@mein.io>
Mon, 11 Jul 2022 09:23:57 +0000 (11:23 +0200)
committerJo-Philipp Wich <jo@mein.io>
Sat, 23 Jul 2022 11:18:03 +0000 (13:18 +0200)
Package luci-proto-ncm depends on comgt-ncm which uses an option
called 'mode' to set the radiomode of the modem. There is no option
'service' in the comgt-ncm scripts.

Suggested-by: breenstorm <49235337+breenstorm@users.noreply.github.com>
[fix commit subject, add commit message, rebase onto master branch]
Signed-off-by: Jo-Philipp Wich <jo@mein.io>
protocols/luci-proto-ncm/htdocs/luci-static/resources/protocol/ncm.js

index 95b52978115be8093a7f122161555ad9cf18faf7..8ff4a1550694b95874c3b0032bfa505da3eeec65 100644 (file)
@@ -69,7 +69,7 @@ return network.registerProtocol('ncm', {
                        }, this));
                };
 
-               o = s.taboption('general', form.Value, 'service', _('Service Type'));
+               o = s.taboption('general', form.Value, 'mode', _('Network Mode'));
                o.value('', _('Modem default'));
                o.value('preferlte', _('Prefer LTE'));
                o.value('preferumts', _('Prefer UMTS'));