Explorar o código

DashEditView: fix for small ui bug, when having dashboard settings view open and entering panel edit mode, did not cause dash edit view to be closed

Torkel Ödegaard %!s(int64=10) %!d(string=hai) anos
pai
achega
71edd9ff1b
Modificáronse 1 ficheiros con 2 adicións e 0 borrados
  1. 2 0
      public/app/features/dashboard/viewStateSrv.js

+ 2 - 0
public/app/features/dashboard/viewStateSrv.js

@@ -125,6 +125,8 @@ function (angular, _, $) {
     };
     };
 
 
     DashboardViewState.prototype.enterFullscreen = function(panelScope) {
     DashboardViewState.prototype.enterFullscreen = function(panelScope) {
+      this.$scope.appEvent('hide-dash-editor');
+
       var docHeight = $(window).height();
       var docHeight = $(window).height();
       var editHeight = Math.floor(docHeight * 0.3);
       var editHeight = Math.floor(docHeight * 0.3);
       var fullscreenHeight = Math.floor(docHeight * 0.7);
       var fullscreenHeight = Math.floor(docHeight * 0.7);