From 1c61a669509c3780b0642aad07a771be8bea7e5e Mon Sep 17 00:00:00 2001 From: Paul Donald Date: Tue, 5 Nov 2024 19:31:33 +0100 Subject: [PATCH] luci-mod-network: show 'Interface disabled' in status Signed-off-by: Fengyu Wu Signed-off-by: Paul Donald --- .../htdocs/luci-static/resources/view/network/interfaces.js | 1 + 1 file changed, 1 insertion(+) 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 6f9f2df9418d..a4c7384e90ed 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 @@ -88,6 +88,7 @@ function render_status(node, ifc, with_device) { ...addEntries(_('IPv4'), changecount ? [] : ifc.getIPAddrs()), ...addEntries(_('IPv6'), changecount ? [] : ifc.getIP6Addrs()), ...addEntries(_('IPv6-PD'), changecount ? null : ifc.getIP6Prefixes?.()), + _('Information'), with_device ? null : (ifc.get('disabled') != '1' ? null : _('Interface disabled')), _('Information'), with_device ? null : (ifc.get('auto') != '0' ? null : _('Not started on boot')), ...addEntries(_('Error'), ifc.getErrors()), null, changecount ? E('a', {