initial work to add shortcut to toggle legend - generic

This commit is contained in:
Dave Waters
2018-10-19 16:33:23 -04:00
parent eabb04cec2
commit 4b524fafa5
3 changed files with 14 additions and 1 deletions

View File

@@ -147,7 +147,7 @@ class GraphCtrl extends MetricsPanelCtrl {
onInitPanelActions(actions) {
actions.push({ text: 'Export CSV', click: 'ctrl.exportCsv()' });
actions.push({ text: 'Toggle legend', click: 'ctrl.toggleLegend()' });
actions.push({ text: 'Toggle legend', click: 'ctrl.toggleLegend()', shortcut: 'p l' });
}
issueQueries(datasource) {