|
@@ -35,6 +35,8 @@ export class KeybindingSrv {
|
|
|
this.bind("g a", this.openAlerting);
|
|
this.bind("g a", this.openAlerting);
|
|
|
this.bind("g p", this.goToProfile);
|
|
this.bind("g p", this.goToProfile);
|
|
|
this.bind("s s", this.openSearchStarred);
|
|
this.bind("s s", this.openSearchStarred);
|
|
|
|
|
+ this.bind('s o', this.openSearch);
|
|
|
|
|
+ this.bind('s t', this.openSearchTags);
|
|
|
this.bind('f', this.openSearch);
|
|
this.bind('f', this.openSearch);
|
|
|
}
|
|
}
|
|
|
|
|
|
|
@@ -42,6 +44,10 @@ export class KeybindingSrv {
|
|
|
this.$rootScope.appEvent('show-dash-search', {starred: true});
|
|
this.$rootScope.appEvent('show-dash-search', {starred: true});
|
|
|
}
|
|
}
|
|
|
|
|
|
|
|
|
|
+ openSearchTags() {
|
|
|
|
|
+ this.$rootScope.appEvent('show-dash-search', {tagsMode: true});
|
|
|
|
|
+ }
|
|
|
|
|
+
|
|
|
openSearch() {
|
|
openSearch() {
|
|
|
this.$rootScope.appEvent('show-dash-search');
|
|
this.$rootScope.appEvent('show-dash-search');
|
|
|
}
|
|
}
|
|
@@ -143,6 +149,21 @@ export class KeybindingSrv {
|
|
|
}
|
|
}
|
|
|
});
|
|
});
|
|
|
|
|
|
|
|
|
|
+ // share panel
|
|
|
|
|
+ this.bind('p s', () => {
|
|
|
|
|
+ if (dashboard.meta.focusPanelId) {
|
|
|
|
|
+ var shareScope = scope.$new();
|
|
|
|
|
+ var panelInfo = dashboard.getPanelInfoById(dashboard.meta.focusPanelId);
|
|
|
|
|
+ shareScope.panel = panelInfo.panel;
|
|
|
|
|
+ shareScope.dashboard = dashboard;
|
|
|
|
|
+
|
|
|
|
|
+ appEvents.emit('show-modal', {
|
|
|
|
|
+ src: 'public/app/features/dashboard/partials/shareModal.html',
|
|
|
|
|
+ scope: shareScope
|
|
|
|
|
+ });
|
|
|
|
|
+ }
|
|
|
|
|
+ });
|
|
|
|
|
+
|
|
|
// delete row
|
|
// delete row
|
|
|
this.bind('r r', () => {
|
|
this.bind('r r', () => {
|
|
|
if (dashboard.meta.focusPanelId && dashboard.meta.canEdit) {
|
|
if (dashboard.meta.focusPanelId && dashboard.meta.canEdit) {
|
|
@@ -161,21 +182,6 @@ export class KeybindingSrv {
|
|
|
}
|
|
}
|
|
|
});
|
|
});
|
|
|
|
|
|
|
|
- // share panel
|
|
|
|
|
- this.bind('p s', () => {
|
|
|
|
|
- if (dashboard.meta.focusPanelId) {
|
|
|
|
|
- var shareScope = scope.$new();
|
|
|
|
|
- var panelInfo = dashboard.getPanelInfoById(dashboard.meta.focusPanelId);
|
|
|
|
|
- shareScope.panel = panelInfo.panel;
|
|
|
|
|
- shareScope.dashboard = dashboard;
|
|
|
|
|
-
|
|
|
|
|
- appEvents.emit('show-modal', {
|
|
|
|
|
- src: 'public/app/features/dashboard/partials/shareModal.html',
|
|
|
|
|
- scope: shareScope
|
|
|
|
|
- });
|
|
|
|
|
- }
|
|
|
|
|
- });
|
|
|
|
|
-
|
|
|
|
|
this.bind('d r', () => {
|
|
this.bind('d r', () => {
|
|
|
scope.broadcastRefresh();
|
|
scope.broadcastRefresh();
|
|
|
});
|
|
});
|