Commit 5a30b08b by Mitsuhiro Tanda Committed by bergquist

add keyboard shotcuts for collapse/expand rows

parent e3b71ed9
......@@ -187,6 +187,20 @@ export class KeybindingSrv {
}
});
// collapse all rows
this.bind('r C', () => {
_.each(dashboard.rows, function(row) {
row.collapse = true;
});
});
// expand all rows
this.bind('r E', () => {
_.each(dashboard.rows, function(row) {
row.collapse = false;
});
});
this.bind('d r', () => {
scope.broadcastRefresh();
});
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment