Geomap: make the geomap panel beta and label alpha layers (#36894)

This commit is contained in:
Ryan McKinley
2021-07-19 08:07:28 -07:00
committed by GitHub
parent ecd2c320ba
commit d4fa2529c8
8 changed files with 46 additions and 13 deletions

View File

@@ -1,4 +1,5 @@
import { config, GrafanaBootConfig } from '@grafana/runtime';
import { PluginState } from '../../../packages/grafana-data/src';
// Legacy binding paths
export { config, GrafanaBootConfig as Settings };
@@ -16,3 +17,6 @@ export const updateConfig = (update: Partial<GrafanaBootConfig>) => {
...update,
};
};
// The `enable_alpha` flag is no exposed directly, this is equivolant
export const hasAlphaPanels = Boolean(config.panels?.debug?.state === PluginState.alpha);