Chore: Adds Panel Library featuretoggle (#29521)
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user