From e82d17104185f9565c8cc0500c67ed517fe1fb5c Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Torkel=20=C3=96degaard?= Date: Sun, 21 Sep 2014 08:19:41 +0200 Subject: [PATCH] Dashboard: when opening search or dashboard settings, click the icon again will now hide the view, Closes #836 --- src/app/directives/dashEditLink.js | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/src/app/directives/dashEditLink.js b/src/app/directives/dashEditLink.js index fbdfc4fa5cc..599cf341fe5 100644 --- a/src/app/directives/dashEditLink.js +++ b/src/app/directives/dashEditLink.js @@ -51,9 +51,12 @@ function (angular, $) { scope.onAppEvent('hide-dash-editor', hideEditorPane); scope.onAppEvent('show-dash-editor', function(evt, payload) { - hideEditorPane(); + if (lastEditor === payload.src) { + hideEditorPane(); + return; + } - if (lastEditor === payload.src) { return; } + hideEditorPane(); scope.exitFullscreen();