|
|
|
@ -197,7 +197,7 @@ func (hs *HTTPServer) getNavTree(c *models.ReqContext, hasEditPerm bool, prefs * |
|
|
|
|
|
|
|
|
|
dashboardsUrl := "/dashboards" |
|
|
|
|
|
|
|
|
|
navTree = append(navTree, &dtos.NavLink{ |
|
|
|
|
dashboardLink := &dtos.NavLink{ |
|
|
|
|
Text: "Dashboards", |
|
|
|
|
Id: "dashboards", |
|
|
|
|
SubTitle: "Manage dashboards and folders", |
|
|
|
@ -206,7 +206,13 @@ func (hs *HTTPServer) getNavTree(c *models.ReqContext, hasEditPerm bool, prefs * |
|
|
|
|
SortWeight: dtos.WeightDashboard, |
|
|
|
|
Section: dtos.NavSectionCore, |
|
|
|
|
Children: dashboardChildLinks, |
|
|
|
|
}) |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
if hs.Features.IsEnabled(featuremgmt.FlagTopnav) { |
|
|
|
|
dashboardLink.Id = "dashboards/browse" |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
navTree = append(navTree, dashboardLink) |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
canExplore := func(context *models.ReqContext) bool { |
|
|
|
@ -507,9 +513,11 @@ func (hs *HTTPServer) buildDashboardNavLinks(c *models.ReqContext, hasEditPerm b |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
dashboardChildNavs := []*dtos.NavLink{} |
|
|
|
|
dashboardChildNavs = append(dashboardChildNavs, &dtos.NavLink{ |
|
|
|
|
Text: "Browse", Id: "dashboards/browse", Url: hs.Cfg.AppSubURL + "/dashboards", Icon: "sitemap", |
|
|
|
|
}) |
|
|
|
|
if !hs.Features.IsEnabled(featuremgmt.FlagTopnav) { |
|
|
|
|
dashboardChildNavs = append(dashboardChildNavs, &dtos.NavLink{ |
|
|
|
|
Text: "Browse", Id: "dashboards/browse", Url: hs.Cfg.AppSubURL + "/dashboards", Icon: "sitemap", |
|
|
|
|
}) |
|
|
|
|
} |
|
|
|
|
dashboardChildNavs = append(dashboardChildNavs, &dtos.NavLink{ |
|
|
|
|
Text: "Playlists", Id: "dashboards/playlists", Url: hs.Cfg.AppSubURL + "/playlists", Icon: "presentation-play", |
|
|
|
|
}) |
|
|
|
|