Skip to content

Commit

Permalink
add navbarExtensions ui export type and registry
Browse files Browse the repository at this point in the history
  • Loading branch information
w33ble committed Jan 19, 2016
1 parent f0f639e commit bdfc2e4
Show file tree
Hide file tree
Showing 4 changed files with 11 additions and 2 deletions.
3 changes: 2 additions & 1 deletion src/plugins/kibana/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,8 @@ module.exports = function (kibana) {
uses: [
'visTypes',
'spyModes',
'fieldFormats'
'fieldFormats',
'navbarExtensions'
],

injectVars: function (server, options) {
Expand Down
1 change: 0 additions & 1 deletion src/plugins/kibana/public/visualize/editor/editor.html
Original file line number Diff line number Diff line change
@@ -1,5 +1,4 @@
<div ng-controller="VisEditor" class="vis-editor vis-type-{{ vis.type.name }}">

<navbar ng-if="chrome.getVisible()">
<div class="fill bitty-modal-container">
<div ng-if="vis.type.requiresSearch && $state.linked && !unlinking"
Expand Down
1 change: 1 addition & 0 deletions src/ui/UiExports.js
Original file line number Diff line number Diff line change
Expand Up @@ -61,6 +61,7 @@ class UiExports {
case 'fieldFormats':
case 'spyModes':
case 'chromeNavControls':
case 'navbarExtensions':
return (plugin, spec) => {
this.aliases[type] = _.union(this.aliases[type] || [], spec);
};
Expand Down
8 changes: 8 additions & 0 deletions src/ui/public/registry/navbar_extensions.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
define(function (require) {
return require('ui/registry/_registry')({
name: 'navbarExtensions',
index: ['name'],
group: ['appName'],
order: ['order']
});
});

0 comments on commit bdfc2e4

Please sign in to comment.