ux(dashboard): fixes for changing panel tabs, #6442

This commit is contained in:
Torkel Ödegaard
2016-11-02 21:45:46 +01:00
parent 47aae7f1f2
commit cdea420285
5 changed files with 19 additions and 11 deletions

View File

@@ -100,7 +100,10 @@ export class KeybindingSrv {
this.bind('e', () => {
if (dashboard.meta.focusPanelId && dashboard.meta.canEdit) {
this.$rootScope.appEvent('panel-change-view', {
fullscreen: true, edit: true, panelId: dashboard.meta.focusPanelId
fullscreen: true,
edit: true,
panelId: dashboard.meta.focusPanelId,
toggle: true
});
}
});
@@ -108,7 +111,10 @@ export class KeybindingSrv {
this.bind('v', () => {
if (dashboard.meta.focusPanelId) {
this.$rootScope.appEvent('panel-change-view', {
fullscreen: true, edit: null, panelId: dashboard.meta.focusPanelId
fullscreen: true,
edit: null,
panelId: dashboard.meta.focusPanelId,
toggle: true,
});
}
});