Преглед изворни кода

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

Torkel Ödegaard пре 11 година
родитељ
комит
e82d171041
1 измењених фајлова са 5 додато и 2 уклоњено
  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();