add module silvermobi to lateral navbar

This commit is contained in:
Maxime 2024-04-19 15:54:38 +02:00
parent a636b54a94
commit dc08de2419
2 changed files with 11 additions and 0 deletions

View File

@ -251,6 +251,14 @@ func NewState(r *http.Request, themeConfig *viper.Viper, menuState string) Rende
Icon: "hero:outline/user-group",
})
}
if modules["silvermobi"] != nil && modules["silvermobi"].(bool) {
ls.MenuItems = append(ls.MenuItems, MenuItem{
Title: "Silvermobi",
Link: "/app/silvermobi/",
Active: menuState == silvermobiMenu,
Icon: "hero:outline/map",
})
}
return RenderState{
IconSet: icons.NewIconSet(iconset),
Group: group,

3
renderer/silvermobi.go Normal file
View File

@ -0,0 +1,3 @@
package renderer
const silvermobiMenu = "silvermobi"