From 134f3432f0215a7be3b30d5b375d94e39fdfa727 Mon Sep 17 00:00:00 2001 From: Julia Radzhabova Date: Thu, 26 Sep 2024 22:05:31 +0300 Subject: [PATCH 1/2] Fix Bug 70493 --- apps/common/main/lib/component/SideMenu.js | 4 ++++ apps/documenteditor/main/app/view/LeftMenu.js | 12 ++++++------ apps/pdfeditor/main/app/view/LeftMenu.js | 12 ++++++------ apps/presentationeditor/main/app/view/LeftMenu.js | 12 ++++++------ apps/spreadsheeteditor/main/app/view/LeftMenu.js | 10 +++++----- 5 files changed, 27 insertions(+), 23 deletions(-) diff --git a/apps/common/main/lib/component/SideMenu.js b/apps/common/main/lib/component/SideMenu.js index a3bfcddf5a..a965cdc53e 100644 --- a/apps/common/main/lib/component/SideMenu.js +++ b/apps/common/main/lib/component/SideMenu.js @@ -213,6 +213,10 @@ define([ }); }, + isButtonInMoreMenu: function (btn) { + return _.indexOf(this.buttons, btn)>-1; + }, + getPluginButton: function (guid) { var btn; for (var i=0; i Date: Thu, 26 Sep 2024 22:07:21 +0300 Subject: [PATCH 2/2] [SSE] Fix loading spellcheck button in left menu --- apps/spreadsheeteditor/main/app/controller/LeftMenu.js | 2 ++ 1 file changed, 2 insertions(+) diff --git a/apps/spreadsheeteditor/main/app/controller/LeftMenu.js b/apps/spreadsheeteditor/main/app/controller/LeftMenu.js index 9ea135e09f..969edb2383 100644 --- a/apps/spreadsheeteditor/main/app/controller/LeftMenu.js +++ b/apps/spreadsheeteditor/main/app/controller/LeftMenu.js @@ -260,6 +260,8 @@ define([ if (this.mode.isEdit && Common.UI.FeaturesManager.canChange('spellcheck')) { Common.UI.LayoutManager.isElementVisible('leftMenu-spellcheck') && this.leftMenu.btnSpellcheck.show(); this.leftMenu.setOptionsPanel('spellcheck', this.getApplication().getController('Spellcheck').getView('Spellcheck')); + this.leftMenu.setButtons(); + this.leftMenu.setMoreButton(); } },