In app_switcher.js, expose getTooltip on controller instead of scope.

This commit is contained in:
CJ Cenizal 2016-08-15 11:58:26 -07:00
parent 585a84cc96
commit eb72cb6698
2 changed files with 2 additions and 2 deletions

View file

@ -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"

View file

@ -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()) {