Merge branch 'master' into feature/translation

This commit is contained in:
Stela Augustinova
2025-11-05 11:56:51 +01:00
65 changed files with 1043 additions and 205 deletions

View File

@@ -266,9 +266,11 @@
if (sid) {
apiOn(`session-done-${sid}`, handleSessionDone);
apiOn(`session-closed-${sid}`, handleSessionClosed);
apiOn(`session-changedb-${sid}`, handleChangedDatabase);
return () => {
apiOff(`session-done-${sid}`, handleSessionDone);
apiOff(`session-closed-${sid}`, handleSessionClosed);
apiOff(`session-changedb-${sid}`, handleChangedDatabase);
};
}
return () => {};
@@ -567,6 +569,17 @@
handleSessionDone();
};
const handleChangedDatabase = async props => {
changeTab(tabid, tab => ({
...tab,
props: {
...tab.props,
conid,
database: props.database,
},
}));
};
const { editorState, editorValue, setEditorData } = useEditorData({
tabid,
loadFromArgs: