Просмотр исходного кода

ux: close edit views when opening panel in edit mode

Torkel Ödegaard 8 лет назад
Родитель
Сommit
217c746445
1 измененных файлов с 6 добавлено и 0 удалено
  1. 6 0
      public/app/core/directives/dash_edit_link.js

+ 6 - 0
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');
+        });
       }
     };
   });
 });
+