From fb66a79a0f69e342d702c827cba5d42df8e83eda Mon Sep 17 00:00:00 2001 From: Julia Radzhabova Date: Tue, 2 Nov 2021 12:41:05 +0300 Subject: [PATCH] [SSE] Customize spellcheck button in the left menu --- apps/spreadsheeteditor/main/app/controller/LeftMenu.js | 2 +- apps/spreadsheeteditor/main/app/template/LeftMenu.template | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/apps/spreadsheeteditor/main/app/controller/LeftMenu.js b/apps/spreadsheeteditor/main/app/controller/LeftMenu.js index ec0ca3b6e..1884d5538 100644 --- a/apps/spreadsheeteditor/main/app/controller/LeftMenu.js +++ b/apps/spreadsheeteditor/main/app/controller/LeftMenu.js @@ -240,7 +240,7 @@ define([ } if (this.mode.isEdit) { - this.leftMenu.btnSpellcheck.show(); + Common.UI.LayoutManager.isElementVisible('leftMenu-spellcheck') && this.leftMenu.btnSpellcheck.show(); this.leftMenu.setOptionsPanel('spellcheck', this.getApplication().getController('Spellcheck').getView('Spellcheck')); } if (this.mode.canUseHistory) diff --git a/apps/spreadsheeteditor/main/app/template/LeftMenu.template b/apps/spreadsheeteditor/main/app/template/LeftMenu.template index c11a45dac..1075eed4b 100644 --- a/apps/spreadsheeteditor/main/app/template/LeftMenu.template +++ b/apps/spreadsheeteditor/main/app/template/LeftMenu.template @@ -6,7 +6,7 @@ - +