luci-base: ui: resolve aliases and rewrites on obtaining menu node children
authorJo-Philipp Wich <jo@mein.io>
Thu, 28 Apr 2022 14:06:25 +0000 (16:06 +0200)
committerJo-Philipp Wich <jo@mein.io>
Thu, 28 Apr 2022 14:06:25 +0000 (16:06 +0200)
commit180d39dcd2427e3c32c0ec7ecc3c7bfb48c0d0ab
tree638301131a20bf2a5b22445a4913c19baf8f1729
parent904c174cafe46a6414058d242df279c09e23be29
luci-base: ui: resolve aliases and rewrites on obtaining menu node children

Extend LuCI.ui.menu.getChildren() to resolve aliases and rewrites prior to
returning the menu nodes. This allows aliasing entire menu trees instead of
just single pages.

Signed-off-by: Jo-Philipp Wich <jo@mein.io>
modules/luci-base/htdocs/luci-static/resources/ui.js