search: closes dash search when selecting current dashboard (#10285)

Fixes #10231.
This commit is contained in:
Daniel Lee
2017-12-19 15:28:58 +01:00
committed by GitHub
parent 0bc6f4e2bd
commit 6ad06364c7
9 changed files with 66 additions and 15 deletions

View File

@@ -36,15 +36,15 @@ export class KeybindingSrv {
}
openSearchStarred() {
this.$rootScope.appEvent('show-dash-search', {starred: true});
appEvents.emit('show-dash-search', {starred: true});
}
openSearchTags() {
this.$rootScope.appEvent('show-dash-search', {tagsMode: true});
appEvents.emit('show-dash-search', {tagsMode: true});
}
openSearch() {
this.$rootScope.appEvent('show-dash-search');
appEvents.emit('show-dash-search');
}
openAlerting() {