luci-mod-network: routes.js: make interface setting optional
authorJo-Philipp Wich <jo@mein.io>
Fri, 30 Aug 2024 09:54:45 +0000 (11:54 +0200)
committerJo-Philipp Wich <jo@mein.io>
Fri, 30 Aug 2024 09:54:45 +0000 (11:54 +0200)
Fixes: #7260
Ref: https://git.openwrt.org/5c2e5d5ea4e0dd9a0ed66154d818b96bf81664f4
Signed-off-by: Jo-Philipp Wich <jo@mein.io>
modules/luci-mod-network/htdocs/luci-static/resources/view/network/routes.js

index 4004be219a90b1089625b9897b456523ae61fafb..982e6073695f7a2928626c5585fcf1e1996a7da1 100644 (file)
@@ -41,7 +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.rmempty = true;
 
                        o = s.taboption('general', form.ListValue, 'type', _('Route type'), _('Specifies the route type to be created'));
                        o.modalonly = true;