From 608f89429b4b8537ddaefd070c777a6d4fb1c7a1 Mon Sep 17 00:00:00 2001 From: Jo-Philipp Wich Date: Wed, 9 Jun 2021 10:22:38 +0200 Subject: [PATCH] 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 --- .../htdocs/luci-static/resources/view/network/interfaces.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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) { -- 2.30.2