From: Jo-Philipp Wich Date: Wed, 9 Jun 2021 08:22:38 +0000 (+0200) Subject: luci-mod-network: interfaces: show bridge port device icons again X-Git-Url: http://git.openwrt.org/?a=commitdiff_plain;h=da2eefe94b947f37d848f8b04e3f44a979241de0;p=project%2Fluci.git luci-mod-network: interfaces: show bridge port device icons again Restore the display of bridge port device icons in the interface overviews. This feature has been lost after migrating the network config from legacy bridge declarations to device bridge declarations. Signed-off-by: Jo-Philipp Wich (cherry picked from commit 608f89429b4b8537ddaefd070c777a6d4fb1c7a1) --- 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 9b2c9bfd5d..98b51c8a8b 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 @@ -128,7 +128,7 @@ function render_modal_status(node, ifc) { function render_ifacebox_status(node, ifc) { var dev = ifc.getL3Device() || ifc.getDevice(), - subdevs = ifc.getDevices(), + subdevs = dev ? dev.getPorts() : null, c = [ render_iface(dev, ifc.isAlias()) ]; if (subdevs && subdevs.length) {