|
|
@@ -117,16 +117,18 @@ func setIndexViewData(c *m.ReqContext) (*dtos.IndexViewData, error) {
|
|
|
Children: dashboardChildNavs,
|
|
|
})
|
|
|
|
|
|
- // data.NavTree = append(data.NavTree, &dtos.NavLink{
|
|
|
- // Text: "Explore",
|
|
|
- // Id: "explore",
|
|
|
- // SubTitle: "Explore your data",
|
|
|
- // Icon: "fa fa-rocket",
|
|
|
- // Url: setting.AppSubUrl + "/explore",
|
|
|
- // Children: []*dtos.NavLink{
|
|
|
- // {Text: "New tab", Icon: "gicon gicon-dashboard-new", Url: setting.AppSubUrl + "/explore/new"},
|
|
|
- // },
|
|
|
- // })
|
|
|
+ if setting.ExploreEnabled {
|
|
|
+ data.NavTree = append(data.NavTree, &dtos.NavLink{
|
|
|
+ Text: "Explore",
|
|
|
+ Id: "explore",
|
|
|
+ SubTitle: "Explore your data",
|
|
|
+ Icon: "fa fa-rocket",
|
|
|
+ Url: setting.AppSubUrl + "/explore",
|
|
|
+ Children: []*dtos.NavLink{
|
|
|
+ {Text: "New tab", Icon: "gicon gicon-dashboard-new", Url: setting.AppSubUrl + "/explore/new"},
|
|
|
+ },
|
|
|
+ })
|
|
|
+ }
|
|
|
|
|
|
if c.IsSignedIn {
|
|
|
// Only set login if it's different from the name
|