mirror of
https://github.com/grafana/grafana.git
synced 2025-02-25 18:55:37 -06:00
Angular: Fix issue where panels in collapsed rows were not auto-migrated (#75735)
This commit is contained in:
parent
d55c12c48e
commit
dc4091bd34
@ -184,13 +184,13 @@ export class DashboardModel implements TimeModel {
|
|||||||
|
|
||||||
// Auto-migrate old angular panels
|
// Auto-migrate old angular panels
|
||||||
if (options?.autoMigrateOldPanels || !config.angularSupportEnabled || config.featureToggles.autoMigrateOldPanels) {
|
if (options?.autoMigrateOldPanels || !config.angularSupportEnabled || config.featureToggles.autoMigrateOldPanels) {
|
||||||
this.panels.forEach((p) => {
|
for (const p of this.panelIterator()) {
|
||||||
const newType = autoMigrateAngular[p.type];
|
const newType = autoMigrateAngular[p.type];
|
||||||
if (!p.autoMigrateFrom && newType) {
|
if (!p.autoMigrateFrom && newType) {
|
||||||
p.autoMigrateFrom = p.type;
|
p.autoMigrateFrom = p.type;
|
||||||
p.type = newType;
|
p.type = newType;
|
||||||
}
|
}
|
||||||
});
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
this.addBuiltInAnnotationQuery();
|
this.addBuiltInAnnotationQuery();
|
||||||
|
Loading…
Reference in New Issue
Block a user