From d8a24b96c083c27133f96c859d425a0b2035ba49 Mon Sep 17 00:00:00 2001 From: JuliaSvinareva Date: Thu, 1 Jul 2021 13:34:48 +0300 Subject: [PATCH] [SSE] Bug 46767 --- apps/spreadsheeteditor/main/app/controller/Statusbar.js | 2 +- apps/spreadsheeteditor/main/resources/less/statusbar.less | 8 +++++--- 2 files changed, 6 insertions(+), 4 deletions(-) diff --git a/apps/spreadsheeteditor/main/app/controller/Statusbar.js b/apps/spreadsheeteditor/main/app/controller/Statusbar.js index 88b03d382..e7f5e70db 100644 --- a/apps/spreadsheeteditor/main/app/controller/Statusbar.js +++ b/apps/spreadsheeteditor/main/app/controller/Statusbar.js @@ -250,7 +250,7 @@ define([ var islocked = this.statusbar.tabbar.hasClass('coauth-locked'), currentIdx = this.api.asc_getActiveWorksheetIndex(); this.statusbar.btnAddWorksheet.setDisabled(islocked || this.api.isCellEdited || mode!=Asc.c_oAscSelectionDialogType.None); - this.statusbar.btnSheetList[mode != Asc.c_oAscSelectionDialogType.None ? 'addClass' : 'removeClass']('disabled'); + this.statusbar.btnSheetList[mode==Asc.c_oAscSelectionDialogType.FormatTable || mode==Asc.c_oAscSelectionDialogType.PrintTitles ? 'addClass' : 'removeClass']('disabled'); var item, i = this.statusbar.tabbar.getCount(); while (i-- > 0) { diff --git a/apps/spreadsheeteditor/main/resources/less/statusbar.less b/apps/spreadsheeteditor/main/resources/less/statusbar.less index ad07dfc48..782ff6065 100644 --- a/apps/spreadsheeteditor/main/resources/less/statusbar.less +++ b/apps/spreadsheeteditor/main/resources/less/statusbar.less @@ -430,10 +430,12 @@ } &.masked #status-addtabs-box{ - button.disabled .btn-icon { - background-position-x: 0px !important; + button#status-btn-addtab { + opacity: 0.4; + &.disabled .btn-icon { + background-position-x: 0px !important; + } } - opacity: 0.4; } }