FS: Apply versionString in help menu in frontend (#112958)

Set version in help menu in the frontend instead
This commit is contained in:
Josh Hunt
2025-10-24 17:42:42 +01:00
committed by GitHub
parent 9b7c68c994
commit 59bfb44a50
6 changed files with 66 additions and 37 deletions
-1
View File
@@ -216,7 +216,6 @@ func (hs *HTTPServer) setIndexViewData(c *contextmodel.ReqContext) (*dtos.IndexV
hs.HooksService.RunIndexDataHooks(&data, c)
data.NavTree.ApplyCostManagementIA()
data.NavTree.ApplyHelpVersion(data.Settings.BuildInfo.VersionString) // RunIndexDataHooks can modify the version string
data.NavTree.Sort()
return &data, nil
-8
View File
@@ -158,14 +158,6 @@ func Sort(nodes []*NavLink) {
}
}
func (root *NavTreeRoot) ApplyHelpVersion(version string) {
helpNode := root.FindById("help")
if helpNode != nil {
helpNode.SubTitle = version
}
}
func (root *NavTreeRoot) ApplyCostManagementIA() {
orgAdminNode := root.FindById(NavIDCfg)
var costManagementApp *NavLink