mirror of
https://github.com/grafana/grafana.git
synced 2025-02-25 18:55:37 -06:00
Chore(Navigation): Add feature toggle for new navigation work (#38929)
This commit is contained in:
parent
a811d7d76f
commit
b24a4630a6
@ -51,6 +51,7 @@ export interface FeatureToggles {
|
||||
tempoServiceGraph: boolean;
|
||||
tempoSearch: boolean;
|
||||
prometheusMonaco: boolean;
|
||||
newNavigation: boolean;
|
||||
}
|
||||
|
||||
/**
|
||||
|
@ -66,6 +66,7 @@ export class GrafanaBootConfig implements GrafanaConfig {
|
||||
tempoServiceGraph: false,
|
||||
tempoSearch: false,
|
||||
prometheusMonaco: false,
|
||||
newNavigation: false,
|
||||
};
|
||||
licenseInfo: LicenseInfo = {} as LicenseInfo;
|
||||
rendererAvailable = false;
|
||||
|
@ -446,6 +446,10 @@ func (cfg Cfg) IsHTTPRequestHistogramDisabled() bool {
|
||||
return cfg.FeatureToggles["disable_http_request_histogram"]
|
||||
}
|
||||
|
||||
func (cfg Cfg) IsNewNavigationEnabled() bool {
|
||||
return cfg.FeatureToggles["newNavigation"]
|
||||
}
|
||||
|
||||
type CommandLineArgs struct {
|
||||
Config string
|
||||
HomePath string
|
||||
|
Loading…
Reference in New Issue
Block a user