mirror of
https://github.com/grafana/grafana.git
synced 2025-02-25 18:55:37 -06:00
Timeseries: Time regions migration (#66998)
Co-authored-by: Ryan McKinley <ryantxu@gmail.com>
This commit is contained in:
@@ -49,6 +49,7 @@ export const Pages = {
|
||||
},
|
||||
Dashboard: {
|
||||
url: (uid: string) => `/d/${uid}`,
|
||||
wrapper: 'data-testid dashboard-page-wrapper',
|
||||
DashNav: {
|
||||
/**
|
||||
* @deprecated use navV2 from Grafana 8.3 instead
|
||||
|
||||
@@ -237,7 +237,7 @@ function overrideFeatureTogglesFromUrl(config: GrafanaBootConfig) {
|
||||
if (key.startsWith('__feature.')) {
|
||||
const featureToggles = config.featureToggles as Record<string, boolean>;
|
||||
const featureName = key.substring(10);
|
||||
const toggleState = value === 'true';
|
||||
const toggleState = value === 'true' || value === ''; // browser rewrites true as ''
|
||||
if (toggleState !== featureToggles[key]) {
|
||||
featureToggles[featureName] = toggleState;
|
||||
console.log(`Setting feature toggle ${featureName} = ${toggleState}`);
|
||||
|
||||
Reference in New Issue
Block a user