Add ability to fetch only page-type menu items
This commit is contained in:
@@ -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,
|
||||
|
||||
Reference in New Issue
Block a user