luci-base: switch admin category node to firstnode() action

After this change, luci-base will render the first module or application
page installed on the system, instead of rendering a "Component not found"
message when the status category is unavailable.

This allows for single-purpose LuCI installations like e.g. luci-base with
luci-app-travelmate which only presents application specific views without
any of the standard system pages.

Signed-off-by: Jo-Philipp Wich <jo@mein.io>
This commit is contained in:
Jo-Philipp Wich 2018-09-19 20:05:16 +02:00
parent 11f7817d33
commit 0f91ef83af

View file

@ -32,7 +32,7 @@ function index()
page.sysauth_authenticator = "htmlauth"
page.ucidata = true
page.index = true
toplevel_page(page, "admin/status/overview", alias("admin", "status"))
page.target = firstnode()
-- Empty menu tree to be populated by addons and modules