From: Andrew Dodd Date: Sat, 14 Jan 2023 08:01:44 +0000 (+0200) Subject: luci-app-dockerman: Update to play nice with recent changes X-Git-Url: http://git.openwrt.org/?a=commitdiff_plain;h=68e23b284ef64960f06c56e37f9a8a51ca482328;p=project%2Fluci.git luci-app-dockerman: Update to play nice with recent changes 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 (cherry picked from commit 0c1fc7f64566bd5da643eadc6b817bb0f5f591e7) Fixes #6168 --- diff --git a/applications/luci-app-dockerman/luasrc/controller/dockerman.lua b/applications/luci-app-dockerman/luasrc/controller/dockerman.lua index 0b8dd5d900..f00f863ca5 100644 --- a/applications/luci-app-dockerman/luasrc/controller/dockerman.lua +++ b/applications/luci-app-dockerman/luasrc/controller/dockerman.lua @@ -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" }