Navigation: remove redundant config nav link (#41252)

pull/41284/head
Agnès Toulet 4 years ago committed by GitHub
parent 4c727248a3
commit 0997065e04
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
  1. 9
      pkg/api/index.go

@ -309,15 +309,6 @@ func (hs *HTTPServer) getNavTree(c *models.ReqContext, hasEditPerm bool) ([]*dto
} }
if len(configNodes) > 0 { if len(configNodes) > 0 {
navTree = append(navTree, &dtos.NavLink{
Id: dtos.NavIDCfg,
Text: "Configuration",
SubTitle: "Organization: " + c.OrgName,
Icon: "cog",
Url: configNodes[0].Url,
SortWeight: dtos.WeightConfig,
Children: configNodes,
})
configNode := &dtos.NavLink{ configNode := &dtos.NavLink{
Id: dtos.NavIDCfg, Id: dtos.NavIDCfg,
Text: "Configuration", Text: "Configuration",

Loading…
Cancel
Save