luci-app-nlbwmon: move into menu entry into service section
authorFlorian Eckert <fe@dev.tdt.de>
Wed, 8 Jul 2020 08:13:09 +0000 (10:13 +0200)
committerFlorian Eckert <fe@dev.tdt.de>
Mon, 21 Jun 2021 10:03:06 +0000 (12:03 +0200)
Signed-off-by: Florian Eckert <fe@dev.tdt.de>
(cherry picked from commit 9e91737566cc6101b4bf37107c6d945842f06bb8)

applications/luci-app-nlbwmon/root/usr/share/luci/menu.d/luci-app-nlbwmon.json

index 5b597c632998688720f1624594047dd97ab47ce4..b744a6a6de4f714d7e9374a42a96c87746d5d732 100644 (file)
@@ -1,9 +1,10 @@
 {
-       "admin/nlbw": {
+       "admin/services/nlbw": {
                "title": "Bandwidth Monitor",
                "order": 80,
                "action": {
-                       "type": "firstchild"
+                       "type": "alias",
+                       "path": "admin/services/nlbw/display"
                },
                "depends": {
                        "acl": [ "luci-app-nlbwmon" ],
                }
        },
 
-       "admin/nlbw/display": {
+       "admin/services/nlbw/display": {
                "title": "Display",
-               "order": 1,
+               "order": 10,
                "action": {
                        "type": "view",
                        "path": "nlbw/display"
                }
        },
 
-       "admin/nlbw/config": {
+       "admin/services/nlbw/config": {
                "title": "Configuration",
-               "order": 2,
+               "order": 20,
                "action": {
                        "type": "view",
                        "path": "nlbw/config"
                }
        },
 
-       "admin/nlbw/backup": {
+       "admin/services/nlbw/backup": {
                "title": "Backup",
-               "order": 3,
+               "order": 30,
                "action": {
                        "type": "view",
                        "path": "nlbw/backup"