From 7ad35050a0eb0e68f7bff6cb9d98d83070dd8352 Mon Sep 17 00:00:00 2001 From: Julia Radzhabova Date: Wed, 31 Aug 2022 19:29:44 +0300 Subject: [PATCH] Don't close right pane when editor is temporarily disconnected --- apps/documenteditor/main/app/controller/Main.js | 2 +- apps/presentationeditor/main/app/controller/Main.js | 2 +- apps/spreadsheeteditor/main/app/controller/Main.js | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/apps/documenteditor/main/app/controller/Main.js b/apps/documenteditor/main/app/controller/Main.js index e4f8f39be..9af86ff56 100644 --- a/apps/documenteditor/main/app/controller/Main.js +++ b/apps/documenteditor/main/app/controller/Main.js @@ -778,7 +778,7 @@ define([ allowMerge: false, allowSignature: false, allowProtect: false, - rightMenu: {clear: true, disable: true}, + rightMenu: {clear: !temp, disable: true}, statusBar: true, leftMenu: {disable: true, previewMode: true}, fileMenu: {protect: true, history: temp}, diff --git a/apps/presentationeditor/main/app/controller/Main.js b/apps/presentationeditor/main/app/controller/Main.js index 74274bb87..aac291c68 100644 --- a/apps/presentationeditor/main/app/controller/Main.js +++ b/apps/presentationeditor/main/app/controller/Main.js @@ -1050,7 +1050,7 @@ define([ Common.NotificationCenter.trigger('editing:disable', disable, { viewMode: disable, allowSignature: false, - rightMenu: {clear: true, disable: true}, + rightMenu: {clear: !temp, disable: true}, statusBar: true, leftMenu: {disable: true, previewMode: true}, fileMenu: {protect: true, history: temp}, diff --git a/apps/spreadsheeteditor/main/app/controller/Main.js b/apps/spreadsheeteditor/main/app/controller/Main.js index 4f1f37aea..e24801076 100644 --- a/apps/spreadsheeteditor/main/app/controller/Main.js +++ b/apps/spreadsheeteditor/main/app/controller/Main.js @@ -1140,7 +1140,7 @@ define([ viewMode: disable, allowSignature: false, allowProtect: false, - rightMenu: {clear: true, disable: true}, + rightMenu: {clear: !temp, disable: true}, statusBar: true, leftMenu: {disable: true, previewMode: true}, fileMenu: {protect: true, history: temp},