Commit 63c79f06 by Patrick O'Carroll

option to hide Time picker, fixes #2013

parent 894951c7
<div class="editor-row"> <div class="editor-row">
<div class="gf-form-group"> <div class="gf-form-group">
<div class="gf-form"> <div class="gf-form">
<span class="gf-form-label width-10">Auto-refresh</span> <span class="gf-form-label width-10">Auto-refresh</span>
<input type="text" class="gf-form-input max-width-25" ng-model="ctrl.panel.refresh_intervals" array-join> <input type="text" class="gf-form-input max-width-25" ng-model="ctrl.panel.refresh_intervals" array-join>
</div> </div>
<div class="gf-form"> <div class="gf-form">
<span class="gf-form-label width-10">Now delay now-</span> <span class="gf-form-label width-10">Now delay now-</span>
<input type="text" class="gf-form-input max-width-25" <input type="text" class="gf-form-input max-width-25" ng-model="ctrl.panel.nowDelay" placeholder="0m" valid-time-span bs-tooltip="'Enter 1m to ignore the last minute (because it can contain incomplete metrics)'"
ng-model="ctrl.panel.nowDelay" placeholder="0m" data-placement="right">
valid-time-span </div>
bs-tooltip="'Enter 1m to ignore the last minute (because it can contain incomplete metrics)'" <gf-form-switch class="gf-form" label="Disable Time picker" checked="ctrl.panel.disableTimePicker" label-class="width-10"></gf-form-switch>
data-placement="right"> </div>
</div>
</div> </div>
<ul class="nav gf-timepicker-nav"> <ul class="nav gf-timepicker-nav" ng-show="!ctrl.panel.disableTimePicker">
<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)'>
</li> <i class="fa fa-chevron-left"></i>
<li class="dashnav-zoom-out gf-timepicker-time-control" bs-tooltip="'Time range zoom out <br> CTRL+Z'" data-placement="bottom"> </a>
<a ng-click='ctrl.zoom(2)'>Zoom Out</a></li> </li>
</li> <li class="dashnav-zoom-out gf-timepicker-time-control" bs-tooltip="'Time range zoom out <br> CTRL+Z'" data-placement="bottom">
<li class="dashnav-move-timeframe gf-timepicker-time-control" bs-tooltip="'Shift time forward <br> (right arrow key)'" data-placement="bottom"> <a ng-click='ctrl.zoom(2)'>Zoom Out</a>
<a ng-click='ctrl.move(1)'><i class="fa fa-chevron-right"></i></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">
<a ng-click='ctrl.move(1)'>
<i class="fa fa-chevron-right"></i>
</a>
</li>
<li> <li>
<a bs-tooltip="ctrl.tooltip" data-placement="bottom" ng-click="ctrl.openDropdown()" class="gf-timepicker-nav-btn"> <a bs-tooltip="ctrl.tooltip" data-placement="bottom" ng-click="ctrl.openDropdown()" class="gf-timepicker-nav-btn">
<i class="fa fa-clock-o"></i> <i class="fa fa-clock-o"></i>
<span ng-bind="ctrl.rangeString"></span> <span ng-bind="ctrl.rangeString"></span>
<span ng-show="ctrl.isUtc" class="gf-timepicker-utc"> <span ng-show="ctrl.isUtc" class="gf-timepicker-utc">
UTC UTC
</span> </span>
<span ng-show="ctrl.dashboard.refresh" class="text-warning"> <span ng-show="ctrl.dashboard.refresh" class="text-warning">
&nbsp; &nbsp; Refresh every {{ctrl.dashboard.refresh}}
Refresh every {{ctrl.dashboard.refresh}} </span>
</span> </a>
</a> </li>
</li>
<li class="dashnav-refresh-action"> <li class="dashnav-refresh-action">
<a ng-click="ctrl.timeSrv.refreshDashboard()"> <a ng-click="ctrl.timeSrv.refreshDashboard()">
<i class="fa fa-refresh"></i> <i class="fa fa-refresh"></i>
</a> </a>
</li> </li>
</ul> </ul>
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