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

@@ -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() {

View File

@@ -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;