UNPKG

kibana-123

Version:

Kibana is an open source (Apache Licensed), browser based analytics and search dashboard for Elasticsearch. Kibana is a snap to setup and start using. Kibana strives to be easy to get started with, while also being flexible and powerful, just like Elastic

28 lines (24 loc) 769 B
import _ from 'lodash'; import 'plugins/kibana/visualize/editor/agg_group'; import 'plugins/kibana/visualize/editor/vis_options'; import uiModules from 'ui/modules'; import sidebarTemplate from 'plugins/kibana/visualize/editor/sidebar.html'; uiModules .get('app/visualize') .directive('visEditorSidebar', function () { return { restrict: 'E', template: sidebarTemplate, scope: true, controllerAs: 'sidebar', controller: function ($scope) { $scope.$bind('vis', 'editableVis'); $scope.$watch('vis.type', (visType) => { if (visType) { this.showData = visType.schemas.buckets || visType.schemas.metrics; this.section = this.section || (this.showData ? 'data' : 'options'); } }); } }; });