From f0ecbd3878c8e1b0139e3b567e0c3506cf1cbc8d Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Torkel=20=C3=96degaard?= Date: Tue, 9 Feb 2016 14:20:41 +0100 Subject: [PATCH] feat(apps): removed some on hover stuff from sidemenu to make it ready to merge to master --- pkg/api/index.go | 11 +++++++---- public/app/core/components/sidemenu/sidemenu.html | 3 +-- public/app/core/components/sidemenu/sidemenu.ts | 1 - public/less/sidemenu.less | 7 ------- 4 files changed, 8 insertions(+), 14 deletions(-) diff --git a/pkg/api/index.go b/pkg/api/index.go index 74b168e53e9..094511df1ea 100644 --- a/pkg/api/index.go +++ b/pkg/api/index.go @@ -52,12 +52,15 @@ func setIndexViewData(c *middleware.Context) (*dtos.IndexViewData, error) { Text: "Dashboards", Icon: "fa fa-fw fa-th-large", Url: setting.AppSubUrl + "/", - Children: []*dtos.NavLink{ - {Text: "Playlists", Icon: "fa fa-fw fa-list", Url: setting.AppSubUrl + "/playlists"}, - {Text: "Snapshots", Icon: "fa-fw icon-gf icon-gf-snapshot", Url: setting.AppSubUrl + "/dashboard/snapshots"}, - }, + // Children: []*dtos.NavLink{ + // {Text: "Playlists", Icon: "fa fa-fw fa-list", Url: setting.AppSubUrl + "/playlists"}, + // {Text: "Snapshots", Icon: "fa-fw icon-gf icon-gf-snapshot", Url: setting.AppSubUrl + "/dashboard/snapshots"}, + // }, }) + data.MainNavLinks = append(data.MainNavLinks, &dtos.NavLink{Text: "Playlists", Icon: "fa fa-fw fa-list", Url: setting.AppSubUrl + "/playlists"}) + data.MainNavLinks = append(data.MainNavLinks, &dtos.NavLink{Text: "Snapshots", Icon: "fa-fw icon-gf icon-gf-snapshot", Url: setting.AppSubUrl + "/dashboard/snapshots"}) + if c.OrgRole == m.ROLE_ADMIN { data.MainNavLinks = append(data.MainNavLinks, &dtos.NavLink{ Text: "Data Sources", diff --git a/public/app/core/components/sidemenu/sidemenu.html b/public/app/core/components/sidemenu/sidemenu.html index dd3b71e54b4..7fcd41a2824 100644 --- a/public/app/core/components/sidemenu/sidemenu.html +++ b/public/app/core/components/sidemenu/sidemenu.html @@ -1,7 +1,7 @@