Chore(Navigation): Add feature toggle for new navigation work (#38929)

This commit is contained in:
Ashley Harrison 2021-09-07 17:24:44 +01:00 committed by GitHub
parent a811d7d76f
commit b24a4630a6
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
3 changed files with 6 additions and 0 deletions

View File

@ -51,6 +51,7 @@ export interface FeatureToggles {
tempoServiceGraph: boolean;
tempoSearch: boolean;
prometheusMonaco: boolean;
newNavigation: boolean;
}
/**

View File

@ -66,6 +66,7 @@ export class GrafanaBootConfig implements GrafanaConfig {
tempoServiceGraph: false,
tempoSearch: false,
prometheusMonaco: false,
newNavigation: false,
};
licenseInfo: LicenseInfo = {} as LicenseInfo;
rendererAvailable = false;

View File

@ -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