mirror of
https://github.com/grafana/grafana.git
synced 2025-02-25 18:55:37 -06:00
search: closes dash search when selecting current dashboard (#10285)
Fixes #10231.
This commit is contained in:
@@ -11,7 +11,6 @@ export class DashNavCtrl {
|
||||
/** @ngInject */
|
||||
constructor(
|
||||
private $scope,
|
||||
private $rootScope,
|
||||
private dashboardSrv,
|
||||
private $location,
|
||||
public playlistSrv) {
|
||||
@@ -75,7 +74,7 @@ export class DashNavCtrl {
|
||||
}
|
||||
|
||||
showSearch() {
|
||||
this.$rootScope.appEvent('show-dash-search');
|
||||
appEvents.emit('show-dash-search');
|
||||
}
|
||||
|
||||
addPanel() {
|
||||
|
||||
@@ -1,7 +1,7 @@
|
||||
///<reference path="../../headers/common.d.ts" />
|
||||
|
||||
import coreModule from "app/core/core_module";
|
||||
import { appEvents } from "app/core/core";
|
||||
import coreModule from 'app/core/core_module';
|
||||
import appEvents from 'app/core/app_events';
|
||||
|
||||
export class TeamsCtrl {
|
||||
teams: any;
|
||||
|
||||
Reference in New Issue
Block a user