mirror of
https://github.com/grafana/grafana.git
synced 2025-02-25 18:55:37 -06:00
dashboard: migrations for repeat rows (#10070)
This commit is contained in:
committed by
Torkel Ödegaard
parent
d5023d0073
commit
afc036492c
@@ -383,8 +383,8 @@ export class DashboardMigrator {
|
||||
return;
|
||||
}
|
||||
|
||||
// Add special "row" panels if even one row is collapsed or has visible title
|
||||
const showRows = _.some(old.rows, (row) => row.collapse || row.showTitle);
|
||||
// Add special "row" panels if even one row is collapsed, repeated or has visible title
|
||||
const showRows = _.some(old.rows, (row) => row.collapse || row.showTitle || row.repeat);
|
||||
|
||||
for (let row of old.rows) {
|
||||
let height: any = row.height || DEFAULT_ROW_HEIGHT;
|
||||
@@ -398,6 +398,7 @@ export class DashboardMigrator {
|
||||
rowPanel.type = 'row';
|
||||
rowPanel.title = row.title;
|
||||
rowPanel.collapsed = row.collapse;
|
||||
rowPanel.repeat = row.repeat;
|
||||
rowPanel.panels = [];
|
||||
rowPanel.gridPos = {x: 0, y: yPos, w: GRID_COLUMN_COUNT, h: rowGridHeight};
|
||||
rowPanelModel = new PanelModel(rowPanel);
|
||||
|
||||
Reference in New Issue
Block a user