Commit c53fda4b by Daniel Lee Committed by GitHub

Merge pull request #11264 from grafana/11102_duplicate_panel_shortcut

Keyboard shortcut to duplicate panel
parents 685a3717 1094dc32
......@@ -178,6 +178,14 @@ export class KeybindingSrv {
}
});
// duplicate panel
this.bind('p d', () => {
if (dashboard.meta.focusPanelId && dashboard.meta.canEdit) {
let panelIndex = dashboard.getPanelInfoById(dashboard.meta.focusPanelId).index;
dashboard.duplicatePanel(dashboard.panels[panelIndex]);
}
});
// share panel
this.bind('p s', () => {
if (dashboard.meta.focusPanelId) {
......
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