Skip to content

Commit

Permalink
just async import presentation container
Browse files Browse the repository at this point in the history
  • Loading branch information
nreese committed Jul 30, 2024
1 parent a00083b commit 2a8781d
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 20 deletions.

This file was deleted.

Original file line number Diff line number Diff line change
Expand Up @@ -33,12 +33,12 @@ export function createStatusOverviewPanelAction(): UiActionsActionDefinition<Emb
order: 30,
getIconType: () => 'online',
isCompatible: async ({ embeddable }) => {
const { compatibilityCheck } = await import('./compatibility_check');
return compatibilityCheck(embeddable);
const { apiIsPresentationContainer } = await import('@kbn/presentation-containers');
return apiIsPresentationContainer(embeddable);
},
execute: async ({ embeddable }) => {
const { compatibilityCheck } = await import('./compatibility_check');
if (!compatibilityCheck(embeddable)) throw new IncompatibleActionError();
const { apiIsPresentationContainer } = await import('@kbn/presentation-containers');
if (!apiIsPresentationContainer(embeddable)) throw new IncompatibleActionError();
try {
embeddable.addNewPanel({
panelType: SYNTHETICS_OVERVIEW_EMBEDDABLE,
Expand Down

0 comments on commit 2a8781d

Please sign in to comment.