luci-mod-network: interfaces.js: derive status from layer 3 device
authorJo-Philipp Wich <jo@mein.io>
Wed, 18 Sep 2019 05:33:25 +0000 (07:33 +0200)
committerJo-Philipp Wich <jo@mein.io>
Wed, 18 Sep 2019 05:33:25 +0000 (07:33 +0200)
commit15cc74c6b444d22ccfc4384465424edd6d3a718e
tree98614c0f3499846728723caa81de5f135e7a74f4
parent10880b565f3050e1808333f3246bc791d35f69dd
luci-mod-network: interfaces.js: derive status from layer 3 device

Align the status column device selection logic with the approach used for
rendering the interface status boxes; first try to obtain the active
layer3 device as reported by ubus, only then fall back to the protocol
specific device hint which might or might not point to an existing device.

Fixes: #3076
Signed-off-by: Jo-Philipp Wich <jo@mein.io>
modules/luci-mod-network/htdocs/luci-static/resources/view/network/interfaces.js