Commit 1581d04e by Hugo Häggmark Committed by GitHub

Chore: Adds Panel Library featuretoggle (#29521)

parent 9b2592dd
......@@ -37,6 +37,7 @@ export interface FeatureToggles {
ngalert: boolean;
// Just for demo at the moment
traceToLogs: boolean;
panelLibrary: boolean;
/**
* @remarks
......
......@@ -57,6 +57,7 @@ export class GrafanaBootConfig implements GrafanaConfig {
meta: false,
ngalert: false,
traceToLogs: false,
panelLibrary: false,
};
licenseInfo: LicenseInfo = {} as LicenseInfo;
rendererAvailable = false;
......
......@@ -334,10 +334,16 @@ func (cfg Cfg) IsNgAlertEnabled() bool {
return cfg.FeatureToggles["ngalert"]
}
// IsHTTPRequestHistogramEnabled returns whether the http_request_histogram feature is enabled.
func (cfg Cfg) IsHTTPRequestHistogramEnabled() bool {
return cfg.FeatureToggles["http_request_histogram"]
}
// IsPanelLibraryEnabled returns whether the panel library feature is enabled.
func (cfg Cfg) IsPanelLibraryEnabled() bool {
return cfg.FeatureToggles["panelLibrary"]
}
type CommandLineArgs struct {
Config string
HomePath string
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment