From 96ef7beb66de322411ad9a784953d7ff5a0ddfc1 Mon Sep 17 00:00:00 2001 From: Vladislav Grigoryev Date: Sat, 7 Aug 2021 05:23:20 +0300 Subject: luci-mod-network: merge hosts with dns settings The current location for "Network > Hostnames" is confusing. It is provided by Dnsmasq and partly overlaps with static leases. Merge "Hostnames" with "Network > DHCP and DNS" as an extra tab. Also add a simple explanation of the use case. Signed-off-by: Vladislav Grigoryev [Fix typo in label description string] Signed-off-by: Jo-Philipp Wich --- .../root/usr/share/luci/menu.d/luci-mod-network.json | 17 ++--------------- 1 file changed, 2 insertions(+), 15 deletions(-) (limited to 'modules/luci-mod-network/root/usr') diff --git a/modules/luci-mod-network/root/usr/share/luci/menu.d/luci-mod-network.json b/modules/luci-mod-network/root/usr/share/luci/menu.d/luci-mod-network.json index 188c695f3f..844f8cc752 100644 --- a/modules/luci-mod-network/root/usr/share/luci/menu.d/luci-mod-network.json +++ b/modules/luci-mod-network/root/usr/share/luci/menu.d/luci-mod-network.json @@ -59,22 +59,9 @@ } }, - "admin/network/hosts": { - "title": "Hostnames", - "order": 40, - "action": { - "type": "view", - "path": "network/hosts" - }, - "depends": { - "acl": [ "luci-mod-network-dhcp" ], - "uci": { "dhcp": true } - } - }, - "admin/network/routes": { "title": "Static Routes", - "order": 50, + "order": 40, "action": { "type": "view", "path": "network/routes" @@ -86,7 +73,7 @@ "admin/network/diagnostics": { "title": "Diagnostics", - "order": 60, + "order": 50, "action": { "type": "view", "path": "network/diagnostics" -- cgit v1.2.3