From: Jo-Philipp Wich Date: Fri, 8 Dec 2023 12:01:13 +0000 (+0100) Subject: luci-mod-network: exclude alias to self from device picker X-Git-Url: http://git.99rst.org/?a=commitdiff_plain;h=864bf25244a073bf85272524cd90df0a41629577;p=openwrt-luci.git luci-mod-network: exclude alias to self from device picker Do not present alias to self as valid choice in the interface device picker. Fixes: #6754 Signed-off-by: Jo-Philipp Wich --- diff --git a/modules/luci-mod-network/htdocs/luci-static/resources/view/network/interfaces.js b/modules/luci-mod-network/htdocs/luci-static/resources/view/network/interfaces.js index 3748f04b05..8166ac44b1 100644 --- a/modules/luci-mod-network/htdocs/luci-static/resources/view/network/interfaces.js +++ b/modules/luci-mod-network/htdocs/luci-static/resources/view/network/interfaces.js @@ -588,6 +588,7 @@ return view.extend({ o.nobridges = false; o.optional = false; o.network = ifc.getName(); + o.exclude = '@' + ifc.getName(); o = s.taboption('general', form.Flag, 'auto', _('Bring up on boot')); o.modalonly = true;