Chore(Navigation): Add feature toggle for new navigation work (#38929)
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user