Angular: Rename autoMigrateGraphPanels feature flag to autoMigrateOldPanels (#65243)

This commit is contained in:
Ryan McKinley
2023-03-22 21:02:36 -07:00
committed by GitHub
parent 7835aacc8f
commit baf5a1d141
9 changed files with 384 additions and 25 deletions

View File

@@ -237,13 +237,13 @@ export class PanelModel implements DataConfigSource, IPanelModel {
switch (this.type) {
case 'graph':
if (config.featureToggles?.autoMigrateGraphPanels || !config.angularSupportEnabled) {
if (config.featureToggles?.autoMigrateOldPanels || !config.angularSupportEnabled) {
this.autoMigrateFrom = this.type;
this.type = 'timeseries';
}
break;
case 'table-old':
if (!config.angularSupportEnabled) {
if (config.featureToggles?.autoMigrateOldPanels || !config.angularSupportEnabled) {
this.autoMigrateFrom = this.type;
this.type = 'table';
}