From: Jo-Philipp Wich Date: Mon, 21 Aug 2023 08:09:34 +0000 (+0200) Subject: luci-mod-network: routes.js: enforce interface setting X-Git-Url: http://git.openwrt.org/?a=commitdiff_plain;h=a6a428fe60b6fd306bef6d0559bc1d78372b0e56;p=project%2Fluci.git luci-mod-network: routes.js: enforce interface setting Fixes: #6521 Signed-off-by: Jo-Philipp Wich --- diff --git a/modules/luci-mod-network/htdocs/luci-static/resources/view/network/routes.js b/modules/luci-mod-network/htdocs/luci-static/resources/view/network/routes.js index da1330aec8..2e987dfb32 100644 --- a/modules/luci-mod-network/htdocs/luci-static/resources/view/network/routes.js +++ b/modules/luci-mod-network/htdocs/luci-static/resources/view/network/routes.js @@ -41,6 +41,7 @@ return view.extend({ o = s.taboption('general', widgets.NetworkSelect, 'interface', _('Interface'), _('Specifies the logical interface name of the parent (or master) interface this route belongs to')); o.loopback = true; o.nocreate = true; + o.rmempty = false; o = s.taboption('general', form.ListValue, 'type', _('Route type'), _('Specifies the route type to be created')); o.modalonly = true;