[SSE mobile] For Bug 62618

This commit is contained in:
SergeyEzhin
2023-05-23 14:20:16 +03:00
parent dddc5590c5
commit 4f4d2b5899

View File

@ -63,7 +63,6 @@ const StatusbarController = inject('storeWorksheets', 'storeFocusObjects', 'user
}
storeWorksheets.resetSheets(items);
setTimeout(() => updateTabsColors());
};
const onApiActiveSheetChanged = (index) => {
@ -77,19 +76,13 @@ const StatusbarController = inject('storeWorksheets', 'storeFocusObjects', 'user
f7.popover.close('.document-menu.modal-in', false);
}
const loadTabColor = sheetindex => {
const onApiUpdateTabColor = sheetindex => {
const api = Common.EditorApi.get();
let tab = storeWorksheets.sheets.find(sheet => sheet.index === sheetindex);
if (tab) {
setTabLineColor(tab, api.asc_getWorksheetTabColor(sheetindex));
}
};
const onApiUpdateTabColor = index => {
loadTabColor(index);
};
const setTabLineColor = (tab, color) => {
@ -113,14 +106,6 @@ const StatusbarController = inject('storeWorksheets', 'storeFocusObjects', 'user
}
};
const updateTabsColors = () => {
const api = Common.EditorApi.get();
storeWorksheets.sheets.forEach(model => {
setTabLineColor(model, api.asc_getWorksheetTabColor(model.index));
});
};
return null;
}));