From 25213e6313949f962a6916a6f221ea894a76f6a2 Mon Sep 17 00:00:00 2001 From: SergeyEzhin Date: Mon, 29 Mar 2021 14:43:06 +0300 Subject: [PATCH] [SSE mobile] Some fixes --- .../spreadsheeteditor/mobile/src/controller/Statusbar.jsx | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/apps/spreadsheeteditor/mobile/src/controller/Statusbar.jsx b/apps/spreadsheeteditor/mobile/src/controller/Statusbar.jsx index 87a9a26db..b8783e196 100644 --- a/apps/spreadsheeteditor/mobile/src/controller/Statusbar.jsx +++ b/apps/spreadsheeteditor/mobile/src/controller/Statusbar.jsx @@ -38,7 +38,7 @@ const Statusbar = inject('sheets', 'storeAppOptions', 'users')(props => { return () => { Common.Notifications.off('document:ready', onApiSheetsChanged); Common.Notifications.off('engineCreated', on_api_created); - + api.asc_unregisterCallback('asc_onUpdateTabColor', onApiUpdateTabColor); api.asc_unregisterCallback('asc_onWorkbookLocked', onWorkbookLocked); api.asc_unregisterCallback('asc_onWorksheetLocked', onWorksheetLocked); @@ -58,7 +58,7 @@ const Statusbar = inject('sheets', 'storeAppOptions', 'users')(props => { }; const onWorksheetLocked = (index, locked) => { - let model = sheets.find(sheet => sheet.index === index); + let model = sheets.sheets.find(sheet => sheet.index === index); if(model && model.locked != locked) model.locked = locked; }; @@ -121,9 +121,9 @@ const Statusbar = inject('sheets', 'storeAppOptions', 'users')(props => { color = '0px 4px 0 ' + color + ' inset'; } - $$('.sheet-tabs .tab a').eq(tab.index).css('box-shadow', color); + $$('.sheet-tabs .tab').eq(tab.index).css('box-shadow', color); } else { - $$('.sheet-tabs .tab a').eq(tab.index).css('box-shadow', ''); + $$('.sheet-tabs .tab').eq(tab.index).css('box-shadow', ''); } } };