Add ability to fetch only page-type menu items
All checks were successful
continuous-integration/drone/push Build is passing
continuous-integration/drone Build is passing

This commit is contained in:
2020-11-16 09:58:44 -06:00
parent 22611612e5
commit 7bde7576d5
2 changed files with 7 additions and 4 deletions

View File

@@ -247,7 +247,9 @@ class Page extends VersionedModel {
await user.save()
}
async get_menu_items() {
async get_menu_items(page_only) {
if ( page_only ) return [];
// {
// id: child.UUID,
// name: child.is_shared() ? child.Name + ' ⁽ˢʰᵃʳᵉᵈ⁾' : child.Name,