From 217c746445956dafc09ace159b4f109a32e6e9d9 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Torkel=20=C3=96degaard?= Date: Thu, 8 Jun 2017 14:23:51 +0200 Subject: [PATCH] ux: close edit views when opening panel in edit mode --- public/app/core/directives/dash_edit_link.js | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/public/app/core/directives/dash_edit_link.js b/public/app/core/directives/dash_edit_link.js index 5f7bdb956de..3e4bdd4c5c7 100644 --- a/public/app/core/directives/dash_edit_link.js +++ b/public/app/core/directives/dash_edit_link.js @@ -113,12 +113,18 @@ function ($, angular, coreModule) { }); scope.$on("$destroy", hideEditorPane); + scope.onAppEvent('hide-dash-editor', function() { hideEditorPane(false); }); scope.onAppEvent('show-dash-editor', showEditorPane); + + scope.onAppEvent('panel-fullscreen-enter', function() { + scope.appEvent('hide-dash-editor'); + }); } }; }); }); +