mirror of
https://github.com/apache/superset.git
synced 2026-05-31 13:19:23 +00:00
fix(editor): implement missing methods, fix cursor position clearing (#38603)
This commit is contained in:
committed by
GitHub
parent
f5383263bc
commit
1867336907
@@ -694,6 +694,12 @@ const setSchema: typeof sqlLabApi.setSchema = async (schema: string | null) => {
|
||||
store.dispatch(queryEditorSetSchema(queryEditor ?? null, schema));
|
||||
};
|
||||
|
||||
const setActivePanel: typeof sqlLabApi.setActivePanel = async (
|
||||
panelId: string,
|
||||
) => {
|
||||
store.dispatch({ type: SET_ACTIVE_SOUTHPANE_TAB, tabId: panelId });
|
||||
};
|
||||
|
||||
export const sqlLab: typeof sqlLabApi = {
|
||||
CTASMethod,
|
||||
getActivePanel,
|
||||
@@ -719,6 +725,7 @@ export const sqlLab: typeof sqlLabApi = {
|
||||
setDatabase,
|
||||
setCatalog,
|
||||
setSchema,
|
||||
setActivePanel,
|
||||
};
|
||||
|
||||
// Export all models
|
||||
|
||||
Reference in New Issue
Block a user