luci-app-dockerman: Update to play nice with recent changes
authorAndrew Dodd <atd7@cornell.edu>
Fri, 29 Apr 2022 17:57:46 +0000 (13:57 -0400)
committerAndy Dodd <andy.dodd@raymondcorp.com>
Fri, 29 Apr 2022 18:16:05 +0000 (14:16 -0400)
https://github.com/openwrt/luci/commit/180d39dcd2427e3c32c0ec7ecc3c7bfb48c0d0ab broke dockerman's appearance in the menus

Make a small change to dockerman's index entry to make it play nice with the new architecture, firstchild() was obtained using DAWN's controller/dawn.lua as an example

Signed-off-by: Andrew Dodd <atd7@cornell.edu>
applications/luci-app-dockerman/luasrc/controller/dockerman.lua

index 0b8dd5d900f2c4a1a2ea09c211af9f70995f8de2..f00f863ca51a053128f95a8ef0c806d231069d97 100644 (file)
@@ -9,7 +9,7 @@ module("luci.controller.dockerman",package.seeall)
 
 function index()
        entry({"admin", "docker"},
-               alias("admin", "docker", "config"),
+               firstchild(),
                _("Docker"),
                40).acl_depends = { "luci-app-dockerman" }