Browse Source

Dashboard: when opening search or dashboard settings, click the icon again will now hide the view, Closes #836

Torkel Ödegaard 11 years ago
parent
commit
e82d171041
1 changed files with 5 additions and 2 deletions
  1. 5 2
      src/app/directives/dashEditLink.js

+ 5 - 2
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();