From b4ebaa433c5497b42bc923cd0b9c2de4a33d77c6 Mon Sep 17 00:00:00 2001 From: Julia Radzhabova Date: Wed, 1 Jun 2022 00:03:59 +0300 Subject: [PATCH] [SSE] Ole editor: fix status bar --- apps/spreadsheeteditor/main/app/controller/Toolbar.js | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/apps/spreadsheeteditor/main/app/controller/Toolbar.js b/apps/spreadsheeteditor/main/app/controller/Toolbar.js index 483c8f1b6..9a6af6517 100644 --- a/apps/spreadsheeteditor/main/app/controller/Toolbar.js +++ b/apps/spreadsheeteditor/main/app/controller/Toolbar.js @@ -3407,8 +3407,15 @@ define([ } } + var old_name = this._state.tablename; this._state.tablename = (formatTableInfo) ? formatTableInfo.asc_getTableName() : undefined; + + var old_applied = this._state.filterapplied; this._state.filterapplied = this._state.filter && filterInfo.asc_getIsApplyAutoFilter(); + + if (this._state.tablename !== old_name || this._state.filterapplied !== old_applied) + this.getApplication().getController('Statusbar').onApiFilterInfo(!need_disable); + this._state.multiselect = info.asc_getMultiselect(); toolbar.lockToolbar(Common.enumLock.multiselect, this._state.multiselect, { array: [toolbar.btnTableTemplate]});