From eb0c5c04e8fa55214d8d48b28a0a2d6db524d5e0 Mon Sep 17 00:00:00 2001 From: Nicholas Smith Date: Fri, 11 Oct 2019 10:47:25 +1000 Subject: luci-proto-qmi: add PDP type option Signed-off-by: Nicholas Smith --- .../luci-proto-qmi/htdocs/luci-static/resources/protocol/qmi.js | 6 ++++++ 1 file changed, 6 insertions(+) (limited to 'protocols/luci-proto-qmi/htdocs/luci-static/resources') diff --git a/protocols/luci-proto-qmi/htdocs/luci-static/resources/protocol/qmi.js b/protocols/luci-proto-qmi/htdocs/luci-static/resources/protocol/qmi.js index eeda91f6e6..735eefabdf 100644 --- a/protocols/luci-proto-qmi/htdocs/luci-static/resources/protocol/qmi.js +++ b/protocols/luci-proto-qmi/htdocs/luci-static/resources/protocol/qmi.js @@ -97,5 +97,11 @@ return network.registerProtocol('qmi', { o = s.taboption('advanced', form.Value, 'mtu', _('Override MTU')); o.placeholder = dev ? (dev.getMTU() || '1500') : '1500'; o.datatype = 'max(9200)'; + + o = s.taboption('general', form.ListValue, 'pdptype', _('PDP Type')); + o.value('ipv4v6', 'IPv4/IPv6'); + o.value('ipv4', 'IPv4'); + o.value('ipv6', 'IPv6'); + o.default = 'ipv4v6'; } }); -- cgit v1.2.3 From c607284d301917496b9568aff4f47b6b8261cbb2 Mon Sep 17 00:00:00 2001 From: Nicholas Smith Date: Wed, 23 Oct 2019 14:34:22 +1000 Subject: luci-proto-qmi: remove the word 'both' from menu for improved i18n Signed-off-by: Nicholas Smith --- protocols/luci-proto-qmi/htdocs/luci-static/resources/protocol/qmi.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'protocols/luci-proto-qmi/htdocs/luci-static/resources') diff --git a/protocols/luci-proto-qmi/htdocs/luci-static/resources/protocol/qmi.js b/protocols/luci-proto-qmi/htdocs/luci-static/resources/protocol/qmi.js index 735eefabdf..d496808b0a 100644 --- a/protocols/luci-proto-qmi/htdocs/luci-static/resources/protocol/qmi.js +++ b/protocols/luci-proto-qmi/htdocs/luci-static/resources/protocol/qmi.js @@ -68,7 +68,7 @@ return network.registerProtocol('qmi', { s.taboption('general', form.Value, 'pincode', _('PIN')); o = s.taboption('general', form.ListValue, 'auth', _('Authentication Type')); - o.value('both', 'PAP/CHAP (both)'); + o.value('both', 'PAP/CHAP'); o.value('pap', 'PAP'); o.value('chap', 'CHAP'); o.value('none', 'NONE'); -- cgit v1.2.3