ux: close edit views when opening panel in edit mode

This commit is contained in:
Torkel Ödegaard
2017-06-08 14:23:51 +02:00
parent 95c8a76aa6
commit 217c746445

View File

@@ -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');
});
}
};
});
});