Skip to content

Commit

Permalink
In app_switcher.js, expose getTooltip on controller instead of scope.
Browse files Browse the repository at this point in the history
  • Loading branch information
cjcenizal committed Aug 15, 2016
1 parent 585a84c commit eb72cb6
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
ng-repeat="link in switcher.shownNavLinks"
is-active="link.active"
is-disabled="!switcher.isNavLinkEnabled(link)"
tooltip-content="getTooltip(link)"
tooltip-content="switcher.getTooltip(link)"
on-click="switcher.ensureNavigation($event, link)"
href="link.active ? link.url : (link.lastSubUrl || link.url)"
icon="link.icon"
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -73,7 +73,7 @@ uiModules
// so we force them when needed
this.ensureNavigation = appSwitcherEnsureNavigation;

$scope.getTooltip = link => {
this.getTooltip = link => {
// If the sidebar is open then we don't need to show the title because
// it will already be visible.
if (globalNavState.isOpen()) {
Expand Down

0 comments on commit eb72cb6

Please sign in to comment.