Skip to content

Commit

Permalink
Use inspector plugin directly to register view
Browse files Browse the repository at this point in the history
  • Loading branch information
maryia-lapata committed Jan 23, 2020
1 parent 1026ba7 commit 2673963
Show file tree
Hide file tree
Showing 4 changed files with 4 additions and 13 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ import * as Rx from 'rxjs';
import { Subscription } from 'rxjs';
import { i18n } from '@kbn/i18n';
import { TExecuteTriggerActions } from 'src/plugins/ui_actions/public';
import { RequestAdapter, Adapters } from 'src/plugins/inspector/public';
import { RequestAdapter, Adapters } from '../../../../../../../plugins/inspector/public';
import {
esFilters,
TimeRange,
Expand Down
1 change: 0 additions & 1 deletion x-pack/legacy/plugins/maps/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -53,7 +53,6 @@ export function maps(kibana) {
};
},
embeddableFactories: ['plugins/maps/embeddable/map_embeddable_factory'],
inspectorViews: ['plugins/maps/inspector/views/register_views'],
home: ['plugins/maps/register_feature'],
styleSheetPaths: `${__dirname}/public/index.scss`,
savedObjectSchemas: {
Expand Down

This file was deleted.

3 changes: 3 additions & 0 deletions x-pack/legacy/plugins/maps/public/plugin.ts
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,7 @@ import { wrapInI18nContext } from 'ui/i18n';
import { MapListing } from './components/map_listing';
// @ts-ignore
import { setLicenseId } from './kibana_services';
import { MapView } from './inspector/views/map_view';

/**
* These are the interfaces with your public contracts. You should export these
Expand All @@ -37,6 +38,8 @@ export class MapsPlugin implements Plugin<MapsPluginSetup, MapsPluginStart> {
if (licensing) {
licensing.license$.subscribe(({ uid }: { uid: string }) => setLicenseId(uid));
}

plugins.inspector.registerView(MapView);
}

public start(core: CoreStart, plugins: any) {}
Expand Down

0 comments on commit 2673963

Please sign in to comment.