Chore: Remove newNavigation feature toggle and old navbar code (#50872)

* Remove newNavigation feature toggle + old code

* fix unit tests

* remove buildCreateNavLinks
This commit is contained in:
Ashley Harrison
2022-06-16 10:48:38 +01:00
committed by GitHub
parent d0808bdafb
commit d0fa326798
33 changed files with 1087 additions and 2484 deletions
+2 -2
View File
@@ -2,7 +2,7 @@ package navlinks
import "github.com/grafana/grafana/pkg/api/dtos"
func GetServerAdminNode(children []*dtos.NavLink, navSection string) *dtos.NavLink {
func GetServerAdminNode(children []*dtos.NavLink) *dtos.NavLink {
url := ""
if len(children) > 0 {
url = children[0].Url
@@ -15,7 +15,7 @@ func GetServerAdminNode(children []*dtos.NavLink, navSection string) *dtos.NavLi
Icon: "shield",
Url: url,
SortWeight: dtos.WeightAdmin,
Section: navSection,
Section: dtos.NavSectionConfig,
Children: children,
}
}