From eb72cb66984684534a0b0ab5b7bf58b55cba2675 Mon Sep 17 00:00:00 2001 From: CJ Cenizal Date: Mon, 15 Aug 2016 11:58:26 -0700 Subject: [PATCH] In app_switcher.js, expose getTooltip on controller instead of scope. --- .../chrome/directives/global_nav/app_switcher/app_switcher.html | 2 +- .../chrome/directives/global_nav/app_switcher/app_switcher.js | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/src/ui/public/chrome/directives/global_nav/app_switcher/app_switcher.html b/src/ui/public/chrome/directives/global_nav/app_switcher/app_switcher.html index 96eb6fdd3d537..5cfd1b424b526 100644 --- a/src/ui/public/chrome/directives/global_nav/app_switcher/app_switcher.html +++ b/src/ui/public/chrome/directives/global_nav/app_switcher/app_switcher.html @@ -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" diff --git a/src/ui/public/chrome/directives/global_nav/app_switcher/app_switcher.js b/src/ui/public/chrome/directives/global_nav/app_switcher/app_switcher.js index ec63ec406126f..202882920f9b9 100644 --- a/src/ui/public/chrome/directives/global_nav/app_switcher/app_switcher.js +++ b/src/ui/public/chrome/directives/global_nav/app_switcher/app_switcher.js @@ -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()) {