Commit f0ecbd38 by Torkel Ödegaard

feat(apps): removed some on hover stuff from sidemenu to make it ready to merge to master

parent 9dcfe6dc
...@@ -52,12 +52,15 @@ func setIndexViewData(c *middleware.Context) (*dtos.IndexViewData, error) { ...@@ -52,12 +52,15 @@ func setIndexViewData(c *middleware.Context) (*dtos.IndexViewData, error) {
Text: "Dashboards", Text: "Dashboards",
Icon: "fa fa-fw fa-th-large", Icon: "fa fa-fw fa-th-large",
Url: setting.AppSubUrl + "/", Url: setting.AppSubUrl + "/",
Children: []*dtos.NavLink{ // Children: []*dtos.NavLink{
{Text: "Playlists", Icon: "fa fa-fw fa-list", Url: setting.AppSubUrl + "/playlists"}, // {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"}, // {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 { if c.OrgRole == m.ROLE_ADMIN {
data.MainNavLinks = append(data.MainNavLinks, &dtos.NavLink{ data.MainNavLinks = append(data.MainNavLinks, &dtos.NavLink{
Text: "Data Sources", Text: "Data Sources",
......
<ul class="sidemenu sidemenu-main"> <ul class="sidemenu sidemenu-main">
<li class="sidemenu-org-section" ng-if="ctrl.isSignedIn"> <li class="sidemenu-org-section" ng-if="ctrl.isSignedIn">
<div class="sidemenu-org"> <div class="sidemenu-org" data-toggle="dropdown" ng-click="ctrl.openUserDropdown()">
<div class="sidemenu-org-avatar"> <div class="sidemenu-org-avatar">
<img ng-src="{{ctrl.user.gravatarUrl}}"> <img ng-src="{{ctrl.user.gravatarUrl}}">
</div> </div>
...@@ -43,7 +43,6 @@ ...@@ -43,7 +43,6 @@
<img ng-src="{{item.img}}" ng-show="item.img"> <img ng-src="{{item.img}}" ng-show="item.img">
</span> </span>
<span class="sidemenu-item-text">{{item.text}}</span> <span class="sidemenu-item-text">{{item.text}}</span>
<i class="fa fa-caret-right small" ng-show="item.children"></i>
</a> </a>
<ul class="dropdown-menu" role="menu" ng-if="item.children"> <ul class="dropdown-menu" role="menu" ng-if="item.children">
<li ng-repeat="child in item.children"> <li ng-repeat="child in item.children">
......
...@@ -38,7 +38,6 @@ export class SideMenuCtrl { ...@@ -38,7 +38,6 @@ export class SideMenuCtrl {
setupMainNav() { setupMainNav() {
this.mainLinks = config.bootData.mainNavLinks; this.mainLinks = config.bootData.mainNavLinks;
this.openUserDropdown();
} }
openUserDropdown() { openUserDropdown() {
......
...@@ -76,13 +76,6 @@ ...@@ -76,13 +76,6 @@
color: @linkColor; color: @linkColor;
} }
} }
li:hover {
position: relative;
.dropdown-menu {
display: block;
}
}
} }
.sidemenu-main-link { .sidemenu-main-link {
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment