mirror of
https://github.com/grafana/grafana.git
synced 2025-02-25 18:55:37 -06:00
Recorded Queries: Split extension reducers init and extension init (#41850)
This commit is contained in:
parent
bec3cc4634
commit
cc471f2d58
@ -95,9 +95,10 @@ export class GrafanaApp {
|
|||||||
setPanelRenderer(PanelRenderer);
|
setPanelRenderer(PanelRenderer);
|
||||||
setLocationSrv(locationService);
|
setLocationSrv(locationService);
|
||||||
setTimeZoneResolver(() => config.bootData.user.timezone);
|
setTimeZoneResolver(() => config.bootData.user.timezone);
|
||||||
// Important that extensions are initialized before store
|
// Important that extension reducers are initialized before store
|
||||||
initExtensions();
|
addExtensionReducers();
|
||||||
configureStore();
|
configureStore();
|
||||||
|
initExtensions();
|
||||||
|
|
||||||
standardEditorsRegistry.setInit(getAllOptionEditors);
|
standardEditorsRegistry.setInit(getAllOptionEditors);
|
||||||
standardFieldConfigEditorRegistry.setInit(getStandardFieldConfigs);
|
standardFieldConfigEditorRegistry.setInit(getStandardFieldConfigs);
|
||||||
@ -145,6 +146,12 @@ export class GrafanaApp {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
function addExtensionReducers() {
|
||||||
|
if (extensionsExports.length > 0) {
|
||||||
|
extensionsExports[0].addExtensionReducers();
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
function initExtensions() {
|
function initExtensions() {
|
||||||
if (extensionsExports.length > 0) {
|
if (extensionsExports.length > 0) {
|
||||||
extensionsExports[0].init();
|
extensionsExports[0].init();
|
||||||
|
Loading…
Reference in New Issue
Block a user