summaryrefslogtreecommitdiffhomepage
path: root/modules/luci-mod-network/htdocs
diff options
context:
space:
mode:
authorPaul Donald <newtwen+github@gmail.com>2024-11-05 19:31:33 +0100
committerPaul Donald <newtwen+github@gmail.com>2024-11-05 19:31:33 +0100
commit1c61a669509c3780b0642aad07a771be8bea7e5e (patch)
tree8b66f2ef6ea8c8f0a4997eb6c8f8b9b1226af137 /modules/luci-mod-network/htdocs
parent7dde3239e0a779eddd29e0b52ff4a7929fb9517d (diff)
luci-mod-network: show 'Interface disabled' in status
Signed-off-by: Fengyu Wu <saldry@proton.me> Signed-off-by: Paul Donald <newtwen+github@gmail.com>
Diffstat (limited to 'modules/luci-mod-network/htdocs')
-rw-r--r--modules/luci-mod-network/htdocs/luci-static/resources/view/network/interfaces.js1
1 files changed, 1 insertions, 0 deletions
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 6f9f2df941..a4c7384e90 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', {