diff --git a/public/app/features/dashboard/model.ts b/public/app/features/dashboard/model.ts index 99c2eef7660..a6091cbf49e 100644 --- a/public/app/features/dashboard/model.ts +++ b/public/app/features/dashboard/model.ts @@ -192,6 +192,7 @@ export class DashboardModel { this.editMode = !this.editMode; this.updateSubmenuVisibility(); + this.events.emit('edit-mode-changed', this.editMode); } setPanelFocus(id) { diff --git a/public/app/features/dashboard/row/add_panel.ts b/public/app/features/dashboard/row/add_panel.ts index b85e33e09c6..f89da910612 100644 --- a/public/app/features/dashboard/row/add_panel.ts +++ b/public/app/features/dashboard/row/add_panel.ts @@ -93,7 +93,7 @@ export class AddPanelCtrl { isNew: true, }; - this.rowCtrl.dropView = 0; + this.rowCtrl.closeDropView(); this.dashboard.addPanel(panel, this.row); this.$timeout(() => { this.$rootScope.$broadcast('render'); diff --git a/public/app/features/dashboard/row/row.html b/public/app/features/dashboard/row/row.html index 6323c3288f6..85ce4fe73ed 100644 --- a/public/app/features/dashboard/row/row.html +++ b/public/app/features/dashboard/row/row.html @@ -1,4 +1,4 @@ -