mirror of
https://github.com/grafana/grafana.git
synced 2025-01-16 11:42:35 -06:00
feat: refactoring hide time picker PR #9756
This commit is contained in:
parent
63c79f066a
commit
bf82d166bc
@ -85,7 +85,7 @@
|
||||
Back to dashboard
|
||||
</a>
|
||||
</li>
|
||||
<li>
|
||||
<li ng-if="!ctrl.dashboard.timepicker.hidden">
|
||||
<gf-time-picker dashboard="ctrl.dashboard"></gf-time-picker>
|
||||
</li>
|
||||
</ul>
|
||||
|
@ -9,6 +9,6 @@
|
||||
<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)'"
|
||||
data-placement="right">
|
||||
</div>
|
||||
<gf-form-switch class="gf-form" label="Disable Time picker" checked="ctrl.panel.disableTimePicker" label-class="width-10"></gf-form-switch>
|
||||
<gf-form-switch class="gf-form" label="Hide time picker" checked="ctrl.panel.hidden" label-class="width-10"></gf-form-switch>
|
||||
</div>
|
||||
</div>
|
||||
|
@ -1,4 +1,4 @@
|
||||
<ul class="nav gf-timepicker-nav" ng-show="!ctrl.panel.disableTimePicker">
|
||||
<ul class="nav gf-timepicker-nav">
|
||||
|
||||
<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)'>
|
||||
|
@ -68,7 +68,7 @@
|
||||
"to": "now"
|
||||
},
|
||||
"timepicker": {
|
||||
"enable": false,
|
||||
"hidden": true,
|
||||
"refresh_intervals": [
|
||||
"5s",
|
||||
"10s",
|
||||
|
Loading…
Reference in New Issue
Block a user