Commit aa21bfd8 by Torkel Ödegaard

fix(timepicker): fixed for viewing auto refresh submenu when timpicker selection…

fix(timepicker): fixed for viewing auto refresh submenu when timpicker selection is set to Today, fixes #2552
parent 57687625
......@@ -27,15 +27,16 @@
<i class="fa fa-caret-down"></i>
</a>
<ul class="dropdown-menu">
<!-- lacy load this -->
<ul class="dropdown-menu" ng-if="time_options" >
<li bindonce ng-repeat='option in time_options'>
<a ng-click="setRelativeFilter(option)" bo-text="option.text"></a>
</li>
<!-- Auto refresh submenu -->
<li class="dropdown-submenu">
<li class="dropdown-submenu">
<a href="#">Auto-Refresh</a>
<ul class="dropdown-menu">
<ul class="dropdown-menu" ng-class="{'dropdown-submenu-left': refreshMenuLeftSide}">
<li>
<a ng-click="timeSrv.set_interval(false)">Off</a>
</li>
......
......@@ -86,6 +86,8 @@ function (angular, app, _, moment, kbn) {
}
return option;
});
$scope.refreshMenuLeftSide = $scope.time.rangeString.length < 10;
};
$scope.customTime = function() {
......
......@@ -583,11 +583,19 @@ code, pre {
}
.dropdown-menu {
min-width: 140px;
> li > a {
padding: 3px 10px;
padding: 3px 20px 3px 15px;
i {
padding-right: 5px;
color: @linkColorDisabled;
}
}
}
.dropdown-submenu>.dropdown-menu.dropdown-submenu-left {
left: auto;
right: 100%;
margin-left: 0;
margin-right: -1px;
}
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