mirror of
https://github.com/elastic/kibana.git
synced 2025-04-24 09:48:58 -04:00
use await import for createUseRulesLink and declare core and setup as async
This commit is contained in:
parent
a63f4ffa49
commit
627a6265cf
1 changed files with 5 additions and 3 deletions
|
@ -46,7 +46,6 @@ import { createNavigationRegistry, NavigationEntry } from './services/navigation
|
|||
import { updateGlobalNavigation } from './update_global_navigation';
|
||||
import { getExploratoryViewEmbeddable } from './components/shared/exploratory_view/embeddable';
|
||||
import { createExploratoryViewUrl } from './components/shared/exploratory_view/configurations/utils';
|
||||
import { createUseRulesLink } from './hooks/create_use_rules_link';
|
||||
|
||||
export type ObservabilityPublicSetup = ReturnType<Plugin['setup']>;
|
||||
|
||||
|
@ -125,10 +124,12 @@ export class Plugin
|
|||
this.initializerContext = initializerContext;
|
||||
}
|
||||
|
||||
public setup(
|
||||
public async setup(
|
||||
coreSetup: CoreSetup<ObservabilityPublicPluginsStart, ObservabilityPublicStart>,
|
||||
pluginsSetup: ObservabilityPublicPluginsSetup
|
||||
) {
|
||||
const { createUseRulesLink } = await import('./hooks/create_use_rules_link');
|
||||
|
||||
const category = DEFAULT_APP_CATEGORIES.observability;
|
||||
const euiIconType = 'logoObservability';
|
||||
const config = this.initializerContext.config.get();
|
||||
|
@ -256,8 +257,9 @@ export class Plugin
|
|||
};
|
||||
}
|
||||
|
||||
public start(coreStart: CoreStart, pluginsStart: ObservabilityPublicPluginsStart) {
|
||||
public async start(coreStart: CoreStart, pluginsStart: ObservabilityPublicPluginsStart) {
|
||||
const { application } = coreStart;
|
||||
const { createUseRulesLink } = await import('./hooks/create_use_rules_link');
|
||||
|
||||
const config = this.initializerContext.config.get();
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue