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 <jo@mein.io>
This commit is contained in:
Jo-Philipp Wich 2021-06-09 10:22:38 +02:00
parent b35316298b
commit 608f89429b

View file

@ -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) {