luci-mod-status: clean up presentation of dhcp section
authorEric Fahlgren <redacted>
Wed, 21 Jan 2026 23:53:35 +0000 (15:53 -0800)
committerPaul Donald <redacted>
Fri, 23 Jan 2026 03:21:54 +0000 (04:21 +0100)
commit05f90a20445b422b127fdb348d154d365c8696bd
tree2a1e039007cdf3116a9fcee4f49f20a170862f5c
parentd52b59cbf0bd10efa190803edc768d38540dd40c
luci-mod-status: clean up presentation of dhcp section

When no dhcp services are available, return null rather than an
empty container, thus suppressing display of the section altogether.

Add a title to the outer container so that the hide/show button
has something to control.

When both v4 and v6 tables are empty, display a message indicating
this rather than showing nothing below the title.

Signed-off-by: Eric Fahlgren <redacted>
modules/luci-mod-status/htdocs/luci-static/resources/view/status/include/40_dhcp.js
git clone https://git.99rst.org/PROJECT