Skip to content

Commit

Permalink
reverted to support 6.0
Browse files Browse the repository at this point in the history
  • Loading branch information
nyurik committed Jan 19, 2018
1 parent 5bdc447 commit 2fa483f
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
3 changes: 2 additions & 1 deletion public/vega_editor_controller.js
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,8 @@ import hjson from 'hjson';
import { Notifier } from 'ui/notify';
import { uiModules } from 'ui/modules';

import 'ui/accessibility/kbn_ui_ace_keyboard_mode';
// Not available in 6.0.1
// import 'ui/accessibility/kbn_ui_ace_keyboard_mode';

const module = uiModules.get('kibana/vega_vis', ['kibana']);
module.controller('VegaVisEditorController', ($scope /*, kbnUiAceKeyboardModeService*/) => {
Expand Down
3 changes: 1 addition & 2 deletions public/vega_type.js
Original file line number Diff line number Diff line change
@@ -1,7 +1,6 @@
import { VisTypesRegistryProvider } from 'ui/registry/vis_types';
import { VisFactoryProvider } from 'ui/vis/vis_factory';
import { CATEGORY } from 'ui/vis/vis_category';
import { DefaultEditorSize } from 'ui/vis/editor_size';

import { VegaRequestHandlerProvider } from './vega_request_handler';
import { VegaVisualizationProvider } from './vega_visualization';
Expand Down Expand Up @@ -35,7 +34,7 @@ VisTypesRegistryProvider.register((Private) => {
editorConfig: {
optionsTemplate: vegaEditorTemplate,
enableAutoApply: true,
defaultSize: DefaultEditorSize.MEDIUM,
defaultSize: 'medium', // backward compatible when ui/public/vis/editor_size is missing
},
visualization: VegaVisualization,
requestHandler: vegaRequestHandler,
Expand Down

0 comments on commit 2fa483f

Please sign in to comment.