mirror of
https://github.com/grafana/grafana.git
synced 2025-02-25 18:55:37 -06:00
dashboards: fix keyboard shortcut for expand/collapse rows
This commit is contained in:
@@ -524,6 +524,34 @@ export class DashboardModel {
|
||||
this.removePanel(row);
|
||||
}
|
||||
|
||||
expandRows() {
|
||||
for (let i = 0; i < this.panels.length; i++) {
|
||||
var panel = this.panels[i];
|
||||
|
||||
if (panel.type !== 'row') {
|
||||
continue;
|
||||
}
|
||||
|
||||
if (panel.collapsed) {
|
||||
this.toggleRow(panel);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
collapseRows() {
|
||||
for (let i = 0; i < this.panels.length; i++) {
|
||||
var panel = this.panels[i];
|
||||
|
||||
if (panel.type !== 'row') {
|
||||
continue;
|
||||
}
|
||||
|
||||
if (!panel.collapsed) {
|
||||
this.toggleRow(panel);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
setPanelFocus(id) {
|
||||
this.meta.focusPanelId = id;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user