mirror of
https://github.com/ONLYOFFICE/web-apps.git
synced 2026-07-25 09:34:29 +08:00
[SSE mobile] For Bug 62618
This commit is contained in:
@ -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;
|
||||
}));
|
||||
|
||||
|
||||
Reference in New Issue
Block a user