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:
parent
11f7817d33
commit
0f91ef83af
1 changed files with 3 additions and 3 deletions
|
@ -32,7 +32,7 @@ function index()
|
||||||
page.sysauth_authenticator = "htmlauth"
|
page.sysauth_authenticator = "htmlauth"
|
||||||
page.ucidata = true
|
page.ucidata = true
|
||||||
page.index = 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
|
-- Empty menu tree to be populated by addons and modules
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue