|
|
|
|
@ -95,9 +95,10 @@ export class GrafanaApp { |
|
|
|
|
setPanelRenderer(PanelRenderer); |
|
|
|
|
setLocationSrv(locationService); |
|
|
|
|
setTimeZoneResolver(() => config.bootData.user.timezone); |
|
|
|
|
// Important that extensions are initialized before store
|
|
|
|
|
initExtensions(); |
|
|
|
|
// Important that extension reducers are initialized before store
|
|
|
|
|
addExtensionReducers(); |
|
|
|
|
configureStore(); |
|
|
|
|
initExtensions(); |
|
|
|
|
|
|
|
|
|
standardEditorsRegistry.setInit(getAllOptionEditors); |
|
|
|
|
standardFieldConfigEditorRegistry.setInit(getStandardFieldConfigs); |
|
|
|
|
@ -145,6 +146,12 @@ export class GrafanaApp { |
|
|
|
|
} |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
function addExtensionReducers() { |
|
|
|
|
if (extensionsExports.length > 0) { |
|
|
|
|
extensionsExports[0].addExtensionReducers(); |
|
|
|
|
} |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
function initExtensions() { |
|
|
|
|
if (extensionsExports.length > 0) { |
|
|
|
|
extensionsExports[0].init(); |
|
|
|
|
|