Commit 79c5d48a by Torkel Ödegaard

Timepicker: Fix for Zoom out top menu link still visible when timepicker was disabled, Fixes #963

parent 6c83699e
...@@ -10,19 +10,26 @@ ...@@ -10,19 +10,26 @@
} }
</style> </style>
<form name="input" style="margin:0"> <form name="input" style="margin:0">
<ul class="nav nav-pills timepicker-dropdown"> <ul class="nav timepicker-dropdown">
<li class="dropdown">
<a class="dropdown-toggle timepicker-dropdown" data-toggle="dropdown" href="" bs-tooltip="time.tooltip" data-placement="bottom" ng-click="dismiss();"> <li class="grafana-menu-zoom-out">
<span ng-bind="time.rangeString"></span> <a class='small' ng-click='zoom(2)'>
<span ng-show="dashboard.refresh" class="text-warning">refreshed every {{dashboard.refresh}} </span> Zoom Out
<i class="icon-caret-down"></i> </a>
</a> </li>
<ul class="dropdown-menu"> <li class="dropdown">
<!-- Relative time options -->
<li bindonce ng-repeat='timespan in panel.time_options track by $index'> <a class="dropdown-toggle timepicker-dropdown" data-toggle="dropdown" href="" bs-tooltip="time.tooltip" data-placement="bottom" ng-click="dismiss();">
<a ng-click="setRelativeFilter(timespan)" bo-text="'Last ' + timespan"></a> <span ng-bind="time.rangeString"></span>
<span ng-show="dashboard.refresh" class="text-warning">refreshed every {{dashboard.refresh}} </span>
<i class="icon-caret-down"></i>
</a>
<ul class="dropdown-menu">
<!-- Relative time options -->
<li bindonce ng-repeat='timespan in panel.time_options track by $index'>
<a ng-click="setRelativeFilter(timespan)" bo-text="'Last ' + timespan"></a>
</li> </li>
<!-- Auto refresh submenu --> <!-- Auto refresh submenu -->
......
...@@ -13,12 +13,6 @@ ...@@ -13,12 +13,6 @@
</a> </a>
</li> </li>
<li class="grafana-menu-zoom-out">
<a class='small' ng-click='zoom(2)'>
Zoom Out
</a>
</li>
<li ng-repeat="pulldown in dashboard.nav" ng-controller="PulldownCtrl" ng-show="pulldown.enable"> <li ng-repeat="pulldown in dashboard.nav" ng-controller="PulldownCtrl" ng-show="pulldown.enable">
<grafana-simple-panel type="pulldown.type" ng-cloak> <grafana-simple-panel type="pulldown.type" ng-cloak>
</grafana-simple-panel> </grafana-simple-panel>
......
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