Merge branch 'master' of github.com:grafana/grafana
This commit is contained in:
@@ -3,7 +3,7 @@
|
|||||||
<li class="dashnav-move-timeframe gf-timepicker-time-control" bs-tooltip="'Shift time backward <br> (left arrow key)'" data-placement="bottom">
|
<li class="dashnav-move-timeframe gf-timepicker-time-control" bs-tooltip="'Shift time backward <br> (left arrow key)'" data-placement="bottom">
|
||||||
<a ng-click='ctrl.move(-1)'><i class="fa fa-chevron-left"></i></a>
|
<a ng-click='ctrl.move(-1)'><i class="fa fa-chevron-left"></i></a>
|
||||||
</li>
|
</li>
|
||||||
<li class="dashnav-zoom-out gf-timepicker-time-control" bs-tooltip="'Time range zoom in <br> CTRL+Z'" data-placement="bottom">
|
<li class="dashnav-zoom-out gf-timepicker-time-control" bs-tooltip="'Time range zoom out <br> CTRL+Z'" data-placement="bottom">
|
||||||
<a ng-click='ctrl.zoom(2)'>Zoom Out</a></li>
|
<a ng-click='ctrl.zoom(2)'>Zoom Out</a></li>
|
||||||
</li>
|
</li>
|
||||||
<li class="dashnav-move-timeframe gf-timepicker-time-control" bs-tooltip="'Shift time forward <br> (right arrow key)'" data-placement="bottom">
|
<li class="dashnav-move-timeframe gf-timepicker-time-control" bs-tooltip="'Shift time forward <br> (right arrow key)'" data-placement="bottom">
|
||||||
|
|||||||
@@ -92,7 +92,7 @@ export class TimePickerCtrl {
|
|||||||
move(direction) {
|
move(direction) {
|
||||||
var range = this.timeSrv.timeRange();
|
var range = this.timeSrv.timeRange();
|
||||||
|
|
||||||
var timespan = (range.to.valueOf() - range.from.valueOf());
|
var timespan = (range.to.valueOf() - range.from.valueOf()) / 2;
|
||||||
var to, from;
|
var to, from;
|
||||||
if (direction === -1) {
|
if (direction === -1) {
|
||||||
to = range.to.valueOf() - timespan;
|
to = range.to.valueOf() - timespan;
|
||||||
|
|||||||
@@ -217,10 +217,10 @@
|
|||||||
|
|
||||||
<div class="gf-form-group">
|
<div class="gf-form-group">
|
||||||
<h5>Preview of values (shows max 20)</h5>
|
<h5>Preview of values (shows max 20)</h5>
|
||||||
<div class="gf-form">
|
<div class="gf-form-inline">
|
||||||
<span class="gf-form-label" ng-repeat="option in current.options | limitTo: 20">
|
<div class="gf-form" ng-repeat="option in current.options | limitTo: 20">
|
||||||
{{option.text}}
|
<span class="gf-form-label">{{option.text}}</span>
|
||||||
</span>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
|
|||||||
Reference in New Issue
Block a user