File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -70,6 +70,7 @@ module.exports = function (kibana) {
7070 description : 'compose visualizations for much win' ,
7171 icon : 'plugins/kibana/assets/dashboard.svg' ,
7272 } , {
73+ id : 'kibana:dev_tools' ,
7374 title : 'Dev Tools' ,
7475 order : 9001 ,
7576 url : '/app/kibana#/dev_tools' ,
Original file line number Diff line number Diff line change @@ -20,6 +20,7 @@ import 'ui/agg_types';
2020import 'ui/timepicker' ;
2121import Notifier from 'ui/notify/notifier' ;
2222import 'leaflet' ;
23+ import DevToolsRegistryProvider from 'ui/registry/dev_tools' ;
2324
2425routes . enable ( ) ;
2526
@@ -49,3 +50,11 @@ chrome
4950} ) ;
5051
5152modules . get ( 'kibana' ) . run ( Notifier . pullMessageFromUrl ) ;
53+
54+ modules . get ( 'kibana' ) . run ( function ( Private ) {
55+ const hasTools = ! ! Private ( DevToolsRegistryProvider ) . length ;
56+ if ( ! hasTools ) {
57+ const navLink = chrome . getNavLinkById ( 'kibana:dev_tools' ) ;
58+ navLink . hidden = true ;
59+ }
60+ } ) ;
You can’t perform that action at this time.
0 commit comments