Skip to content

Commit

Permalink
change wizard loading
Browse files Browse the repository at this point in the history
  • Loading branch information
thomasneirynck committed Apr 16, 2020
1 parent 42e27f4 commit f0abe33
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 8 deletions.
8 changes: 0 additions & 8 deletions x-pack/legacy/plugins/maps/public/plugin.ts
Original file line number Diff line number Diff line change
Expand Up @@ -4,18 +4,11 @@
* you may not use this file except in compliance with the Elastic License.
*/

// eslint-disable-next-line @kbn/eslint/no-restricted-paths
import '../../../../plugins/maps/public/layers/layer_wizard_registry';
// eslint-disable-next-line @kbn/eslint/no-restricted-paths
import '../../../../plugins/maps/public/layers/sources/source_registry';

import { Plugin, CoreStart, CoreSetup } from 'src/core/public';
// @ts-ignore
import { Start as InspectorStartContract } from 'src/plugins/inspector/public';
// @ts-ignore
import { wrapInI18nContext } from 'ui/i18n';
// eslint-disable-next-line @kbn/eslint/no-restricted-paths
import { registerLayerWizards } from '../../../../plugins/maps/public/layers/load_layer_wizards';
// @ts-ignore
import { MapListing } from './components/map_listing';
// @ts-ignore
Expand Down Expand Up @@ -70,6 +63,5 @@ export class MapsPlugin implements Plugin<MapsPluginSetup, MapsPluginStart> {

public start(core: CoreStart, plugins: MapsPluginStartDependencies) {
bindNpStartCoreAndPlugins(core, plugins);
registerLayerWizards();
}
}
2 changes: 2 additions & 0 deletions x-pack/plugins/maps/public/plugin.ts
Original file line number Diff line number Diff line change
Expand Up @@ -33,6 +33,7 @@ import {
setVisualizations,
// @ts-ignore
} from './kibana_services';
import { registerLayerWizards } from './layers/load_layer_wizards';

export interface MapsPluginSetupDependencies {
inspector: InspectorSetupContract;
Expand Down Expand Up @@ -72,6 +73,7 @@ export const bindStartCoreAndPlugins = (core: CoreStart, plugins: any) => {
setUiActions(plugins.uiActions);
setNavigation(plugins.navigation);
setCoreI18n(core.i18n);
registerLayerWizards();
};

/**
Expand Down

0 comments on commit f0abe33

Please sign in to comment.