Skip to content

Commit

Permalink
Merge pull request elastic#7805 from jbudz/issues/7749
Browse files Browse the repository at this point in the history
[nav] Use updated config API in global timepicker.  Closes elastic#7749

Former-commit-id: de12f52
  • Loading branch information
jbudz authored Jul 22, 2016
2 parents 48f86ae + e50e2e9 commit b9477fa
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions src/ui/public/timepicker/kbn_global_timepicker.html
Original file line number Diff line number Diff line change
Expand Up @@ -8,10 +8,10 @@
</li>

<li
ng-show="timefilter.refreshInterval.value > 0 || kbnTopNav.is('interval') || kbnTopNav.is('filter')">
ng-show="timefilter.refreshInterval.value > 0 || kbnTopNav.isCurrent('interval') || kbnTopNav.isCurrent('filter')">

<button ng-click="kbnTopNav.toggle('interval')"
ng-class="{active: kbnTopNav.is('interval') }"
ng-class="{active: kbnTopNav.isCurrent('interval') }"
class="navbar-timepicker-auto-refresh-desc">
<span ng-show="timefilter.refreshInterval.value === 0"><i class="fa fa-repeat"></i> Auto-refresh</span>
<span ng-show="timefilter.refreshInterval.value > 0">{{timefilter.refreshInterval.display}}</span>
Expand All @@ -20,7 +20,7 @@
</li>

<li>
<button ng-class="{active: kbnTopNav.is('filter')}"
<button ng-class="{active: kbnTopNav.isCurrent('filter')}"
ng-click="kbnTopNav.toggle('filter')"
aria-haspopup="true"
aria-expanded="false"
Expand Down

0 comments on commit b9477fa

Please sign in to comment.