mirror of
https://github.com/grafana/grafana.git
synced 2025-02-25 18:55:37 -06:00
Merge pull request #11264 from grafana/11102_duplicate_panel_shortcut
Keyboard shortcut to duplicate panel
This commit is contained in:
@@ -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) {
|
||||
|
Reference in New Issue
Block a user