landed the sysadmin menu page, and the code to render menus as full-page

This commit is contained in:
2025-10-13 21:44:14 -06:00
parent b1270a262e
commit e08ca22f57
5 changed files with 111 additions and 1 deletions
+2
View File
@@ -25,6 +25,7 @@ type MenuItem struct {
P *MenuDefinition
}
// Show checks permissions to see if we can display the menu item.
func (mi *MenuItem) Show(ctxt AmContext) bool {
if mi.Permission == "" {
return true
@@ -45,6 +46,7 @@ type MenuDefinition struct {
ID string `yaml:"id"`
Title string `yaml:"title"`
PermSet string `yaml:"permSet"`
Warning string `yaml:"warning"`
Items []MenuItem `yaml:"items"`
}