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

This commit is contained in:
Torkel Ödegaard
2014-09-21 08:19:41 +02:00
parent a19a2c70ab
commit e82d171041
+5 -2
View File
@@ -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();