add module silvermobi to lateral navbar
This commit is contained in:
parent
a636b54a94
commit
dc08de2419
|
@ -251,6 +251,14 @@ func NewState(r *http.Request, themeConfig *viper.Viper, menuState string) Rende
|
||||||
Icon: "hero:outline/user-group",
|
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{
|
return RenderState{
|
||||||
IconSet: icons.NewIconSet(iconset),
|
IconSet: icons.NewIconSet(iconset),
|
||||||
Group: group,
|
Group: group,
|
||||||
|
|
|
@ -0,0 +1,3 @@
|
||||||
|
package renderer
|
||||||
|
|
||||||
|
const silvermobiMenu = "silvermobi"
|
Loading…
Reference in New Issue