فهرست منبع

HUE-7096 [editor] Save latest panel states before going in presentation mode

Romain Rigaux 8 سال پیش
والد
کامیت
1e7de8e23c
1فایلهای تغییر یافته به همراه3 افزوده شده و 0 حذف شده
  1. 3 0
      desktop/libs/notebook/src/notebook/templates/editor_components.mako

+ 3 - 0
desktop/libs/notebook/src/notebook/templates/editor_components.mako

@@ -3148,6 +3148,9 @@ ${ sqlSyntaxDropdown.sqlSyntaxDropdown() }
       viewModel.isPresentationMode.subscribe(function (value) {
         if (value){
           $(".jHueNotify").remove();
+          isAssistAvailable = viewModel.assistAvailable();
+          wasLeftPanelVisible = viewModel.isLeftPanelVisible();
+          wasRightPanelVisible = viewModel.isRightPanelVisible();
           huePubSub.publish('side.panels.hide');
           viewModel.assistAvailable(false);
           viewModel.isLeftPanelVisible(false);