luci-app-dockerman: Update to play nice with recent changes
authorAndrew Dodd <atd7@cornell.edu>
Sat, 14 Jan 2023 08:01:44 +0000 (10:01 +0200)
committerHannu Nyman <hannu.nyman@iki.fi>
Sat, 14 Jan 2023 08:01:44 +0000 (10:01 +0200)
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>
(cherry picked from commit 0c1fc7f64566bd5da643eadc6b817bb0f5f591e7)
Fixes #6168

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" }