Whitelabelling: Override version in UI from config (#84392)

* Unify how the version is shown in the UI

* use versionString in dashboard help bundles

* fix lint

* remove comment

* fix test types

* make test less flakey
This commit is contained in:
Josh Hunt
2024-03-15 18:39:13 +02:00
committed by GitHub
parent 1ce2ae427f
commit f2628bfad4
11 changed files with 44 additions and 26 deletions
+8
View File
@@ -127,6 +127,14 @@ func Sort(nodes []*NavLink) {
}
}
func (root *NavTreeRoot) ApplyHelpVersion(version string) {
helpNode := root.FindById("help")
if helpNode != nil {
helpNode.SubTitle = version
}
}
func (root *NavTreeRoot) ApplyAdminIA() {
orgAdminNode := root.FindById(NavIDCfg)