Skip to content

Commit

Permalink
fix timelion app icons
Browse files Browse the repository at this point in the history
  • Loading branch information
flash1293 committed Jun 23, 2020
1 parent 965b5a2 commit 433e217
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 3 deletions.
4 changes: 2 additions & 2 deletions src/legacy/core_plugins/timelion/public/legacy.ts
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@
*/

import { PluginInitializerContext } from 'kibana/public';
import { npSetup } from 'ui/new_platform';
import { npSetup, npStart } from 'ui/new_platform';
import { plugin } from '.';
import { TimelionPluginSetupDependencies } from './plugin';
import { LegacyDependenciesPlugin } from './shim';
Expand All @@ -32,4 +32,4 @@ const setupPlugins: Readonly<TimelionPluginSetupDependencies> = {
const pluginInstance = plugin({} as PluginInitializerContext);

export const setup = pluginInstance.setup(npSetup.core, setupPlugins);
export const start = pluginInstance.start();
export const start = pluginInstance.start(npStart.core, npStart.plugins);
5 changes: 4 additions & 1 deletion src/legacy/core_plugins/timelion/public/plugin.ts
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,7 @@ import { CoreSetup, Plugin, PluginInitializerContext, IUiSettingsClient } from '
import { getTimeChart } from './panels/timechart/timechart';
import { Panel } from './panels/panel';
import { LegacyDependenciesPlugin, LegacyDependenciesPluginSetup } from './shim';
import { KibanaLegacyStart } from '../../../../plugins/kibana_legacy/public';

/** @internal */
export interface TimelionVisualizationDependencies extends LegacyDependenciesPluginSetup {
Expand Down Expand Up @@ -59,7 +60,9 @@ export class TimelionPlugin implements Plugin<Promise<void>, void> {
dependencies.timelionPanels.set(timeChartPanel.name, timeChartPanel);
}

public start() {}
public start(core: CoreStart, { kibanaLegacy }: { kibanaLegacy: KibanaLegacyStart }) {
kibanaLegacy.loadFontAwesome();
}

public stop(): void {}
}

0 comments on commit 433e217

Please sign in to comment.