|
@@ -27,7 +27,7 @@ export class AddPanelCtrl {
|
|
|
|
|
|
|
|
keyDown(evt) {
|
|
keyDown(evt) {
|
|
|
if (evt.keyCode === 27) {
|
|
if (evt.keyCode === 27) {
|
|
|
- this.rowCtrl.showOptions = false;
|
|
|
|
|
|
|
+ this.rowCtrl.dropView = 0;
|
|
|
return;
|
|
return;
|
|
|
}
|
|
}
|
|
|
|
|
|
|
@@ -47,6 +47,12 @@ export class AddPanelCtrl {
|
|
|
}
|
|
}
|
|
|
}
|
|
}
|
|
|
|
|
|
|
|
|
|
+ panelSearchBlur() {
|
|
|
|
|
+ this.$timeout(() => {
|
|
|
|
|
+ this.rowCtrl.dropView = 0;
|
|
|
|
|
+ }, 400);
|
|
|
|
|
+ }
|
|
|
|
|
+
|
|
|
moveSelection(direction) {
|
|
moveSelection(direction) {
|
|
|
var max = this.panelHits.length;
|
|
var max = this.panelHits.length;
|
|
|
var newIndex = this.activeIndex + direction;
|
|
var newIndex = this.activeIndex + direction;
|
|
@@ -90,7 +96,7 @@ export class AddPanelCtrl {
|
|
|
this.rowCtrl.dropView = 0;
|
|
this.rowCtrl.dropView = 0;
|
|
|
this.dashboard.addPanel(panel, this.row);
|
|
this.dashboard.addPanel(panel, this.row);
|
|
|
this.$timeout(() => {
|
|
this.$timeout(() => {
|
|
|
- this.$rootScope.broadcast('render');
|
|
|
|
|
|
|
+ this.$rootScope.$broadcast('render');
|
|
|
//this.$rootScope.appEvent('panel-change-view', {
|
|
//this.$rootScope.appEvent('panel-change-view', {
|
|
|
// fullscreen: true, edit: true, panelId: panel.id
|
|
// fullscreen: true, edit: true, panelId: panel.id
|
|
|
//});
|
|
//});
|