Skip to content

Commit

Permalink
[dev_tools] Show active dev tool
Browse files Browse the repository at this point in the history
  • Loading branch information
lukasolson committed Sep 6, 2016
1 parent 7883872 commit f12d8ff
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -5,13 +5,14 @@ import 'plugins/kibana/dev_tools/styles/dev_tools_app.less';

uiModules
.get('apps/dev_tools')
.directive('kbnDevToolsApp', function (Private) {
.directive('kbnDevToolsApp', function (Private, $location) {
return {
restrict: 'E',
template,
transclude: true,
link: function ($scope) {
$scope.devTools = Private(devTools).inOrder;
$scope.currentPath = `#${$location.path()}`;
}
};
});
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
<bread-crumbs omit-current-page="true"></bread-crumbs>

<ul class="nav navbar-nav">
<li ng-repeat="item in devTools">
<li ng-repeat="item in devTools" ng-class="{active: currentPath === item.url}">
<a class="navbar-link" kbn-href="{{::item.url}}">
{{::item.display}}
</a>
Expand Down

0 comments on commit f12d8ff

Please sign in to comment.