mirror of
https://github.com/elastic/kibana.git
synced 2025-04-24 01:38:56 -04:00
In app_switcher.js, expose getTooltip on controller instead of scope.
This commit is contained in:
parent
585a84cc96
commit
eb72cb6698
2 changed files with 2 additions and 2 deletions
|
@ -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"
|
||||
|
|
|
@ -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()) {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue