luci-base: switch admin category node to firstnode() action
authorJo-Philipp Wich <jo@mein.io>
Wed, 19 Sep 2018 18:05:16 +0000 (20:05 +0200)
committerJo-Philipp Wich <jo@mein.io>
Wed, 19 Sep 2018 18:08:19 +0000 (20:08 +0200)
commit0f91ef83afa5236c866605515994a63fa363a65b
tree9527be225f63b74e959394f1d111be12bb813d13
parent11f7817d333c42ec3800f91765f72aa8863111d1
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>
modules/luci-base/luasrc/controller/admin/index.lua