diff --git a/luci-app-omr-bypass/htdocs/luci-static/resources/view/services/omr-bypass.js b/luci-app-omr-bypass/htdocs/luci-static/resources/view/services/omr-bypass.js index 3ab345321..729c8a8ee 100644 --- a/luci-app-omr-bypass/htdocs/luci-static/resources/view/services/omr-bypass.js +++ b/luci-app-omr-bypass/htdocs/luci-static/resources/view/services/omr-bypass.js @@ -27,11 +27,14 @@ return L.view.extend({ s.addremove = true; s.anonymous = true; - o = s.option(form.Value, 'domain', _('Domain')); + o = s.option(form.Value, 'name', _('Domain')); o.rmempty = false; o = s.option(widgets.DeviceSelect, 'interface', _('Interface')); - o.rmempty = false; + o.noaliases = true; + o.noinactive = true; + o.nocreate = true; + o.ucioption = 'dev'; o = s.option(form.Value, 'note', _('Note')); o.rmempty = true; @@ -43,8 +46,11 @@ return L.view.extend({ o = s.option(form.Value, 'ip', _('IP')); o.rmempty = false; - o = s.option(widgets.DeviceSelect, 'interface', _('Interface')); - o.rmempty = false; + o = s.option(widgets.DeviceSelect, 'interface', _('Interface'),_('When none selected, MPTCP master interface is used.')); + o.noaliases = true; + o.noinactive = true; + o.nocreate = true; + o.ucioption = 'dev'; o = s.option(form.Value, 'note', _('Note')); o.rmempty = true; @@ -65,7 +71,10 @@ return L.view.extend({ o.value('udp'); o = s.option(widgets.DeviceSelect, 'interface', _('Interface')); - o.rmempty = false; + o.noaliases = true; + o.noinactive = true; + o.nocreate = true; + o.ucioption = 'dev'; o = s.option(form.Value, 'note', _('Note')); o.rmempty = true; @@ -83,7 +92,10 @@ return L.view.extend({ }); o = s.option(widgets.DeviceSelect, 'interface', _('Interface')); - o.rmempty = false; + o.noaliases = true; + o.noinactive = true; + o.nocreate = true; + o.ucioption = 'dev'; o = s.option(form.Value, 'note', _('Note')); o.rmempty = true; @@ -103,7 +115,10 @@ return L.view.extend({ }); o = s.option(widgets.DeviceSelect, 'interface', _('Interface')); - o.rmempty = false; + o.noaliases = true; + o.noinactive = true; + o.nocreate = true; + o.ucioption = 'dev'; o = s.option(form.Value, 'note', _('Note')); o.rmempty = true; @@ -116,7 +131,10 @@ return L.view.extend({ o.rmempty = false; o = s.option(widgets.DeviceSelect, 'interface', _('Interface')); - o.rmempty = false; + o.noaliases = true; + o.noinactive = true; + o.nocreate = true; + o.ucioption = 'dev'; o = s.option(form.Value, 'note', _('Note')); o.rmempty = true; @@ -154,7 +172,10 @@ return L.view.extend({ }; o = s.option(widgets.DeviceSelect, 'interface', _('Interface')); - o.rmempty = false; + o.noaliases = true; + o.noinactive = true; + o.nocreate = true; + o.ucioption = 'dev'; o = s.option(form.Value, 'note', _('Note')); o.rmempty = true;