Skip to content

Commit

Permalink
ensure sample data is loaded
Browse files Browse the repository at this point in the history
  • Loading branch information
Dosant committed Jun 11, 2020
1 parent 76f8e21 commit 54645c8
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions examples/dashboard_embeddable_examples/public/plugin.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -20,13 +20,15 @@
import { AppMountParameters, AppNavLinkStatus, CoreSetup, Plugin } from '../../../src/core/public';
import { DashboardStart } from '../../../src/plugins/dashboard/public';
import { DeveloperExamplesSetup } from '../../developer_examples/public';
import { EmbeddableExamplesStart } from '../../embeddable_examples/public/plugin';

interface SetupDeps {
developerExamples: DeveloperExamplesSetup;
}

interface StartDeps {
dashboard: DashboardStart;
embeddableExamples: EmbeddableExamplesStart;
}

export class DashboardEmbeddableExamples implements Plugin<void, void, {}, StartDeps> {
Expand All @@ -38,6 +40,7 @@ export class DashboardEmbeddableExamples implements Plugin<void, void, {}, Start
async mount(params: AppMountParameters) {
const [, depsStart] = await core.getStartServices();
const { renderApp } = await import('./app');
await depsStart.embeddableExamples.createSampleData();
return renderApp(
{
basename: params.appBasePath,
Expand Down

0 comments on commit 54645c8

Please sign in to comment.