Commit bf82d166 by Torkel Ödegaard

feat: refactoring hide time picker PR #9756

parent 63c79f06
......@@ -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>
<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",
......
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