refactoring: dashboard folders

This commit is contained in:
Torkel Ödegaard 2017-06-20 14:45:00 -04:00
parent 3edd209736
commit 408c37170f
3 changed files with 34 additions and 5 deletions

View File

@ -51,11 +51,22 @@
<i class="fa fa-remove"></i>
</button>
</div>
<div class="gf-form">
<button class="btn btn-inverse gf-form-btn" ng-click="ctrl.addQuery()" ng-hide="ctrl.current.meta.mixed">
<i class="fa fa-fw fa-plus"></i>
Add Permission
<div class="gf-form dropdown">
<button class="btn btn-inverse gf-form-btn" data-toggle="dropdown">
<i class="fa fa-fw fa-plus"></i> Add Permission
</button>
<ul class="dropdown-menu dropdown-menu--new">
<li>
<a class="pointer" ng-click="ctrl.addUserGroup()">
<i class="fa fa-fw fa-users"></i> User Group
</a>
</li>
<li>
<a class="pointer" ng-click="ctrl.addUserAcl()">
<i class="fa fa-fw fa-user"></i> User
</a>
</li>
</ul>
</div>
</div>
<div class="section pull-right">

View File

@ -275,3 +275,22 @@
content: "\f11c";
}
}
.dropdown-menu.dropdown-menu--new {
li a {
padding: $spacer/2 $spacer;
border-left: 2px solid $side-menu-bg;
background: $side-menu-bg;
i {
display: inline-block;
padding-right: 21px;
}
&:hover {
@include left-brand-border-gradient();
color: $link-hover-color;
background: $input-label-bg;
}
}
}

View File

@ -149,7 +149,6 @@
}
.dropdown-menu.dropdown-menu--navbar {
top: 100%;
min-width: 100%;
margin-top: 0px;