add keyboard shotcuts for collapse/expand rows

This commit is contained in:
Mitsuhiro Tanda 2017-02-13 22:27:12 +09:00 committed by bergquist
parent e3b71ed95e
commit 5a30b08b14

View File

@ -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', () => { this.bind('d r', () => {
scope.broadcastRefresh(); scope.broadcastRefresh();
}); });