mirror of
https://github.com/apache/superset.git
synced 2026-05-11 19:05:24 +00:00
feat(sqllab): add getActivePanel API for panel visibility tracking (#37448)
This commit is contained in:
committed by
GitHub
parent
8aebfe1105
commit
95a465ad7c
@@ -215,6 +215,11 @@ function createQueryErrorContext(
|
||||
const getCurrentTab: typeof sqlLabApi.getCurrentTab = () =>
|
||||
getTab(activeEditorId());
|
||||
|
||||
const getActivePanel: typeof sqlLabApi.getActivePanel = () => {
|
||||
const { activeSouthPaneTab } = getSqlLabState();
|
||||
return new Panel(String(activeSouthPaneTab));
|
||||
};
|
||||
|
||||
const getTabs: typeof sqlLabApi.getTabs = () => {
|
||||
const { queryEditors } = getSqlLabState();
|
||||
return queryEditors
|
||||
@@ -389,6 +394,7 @@ const onDidChangeTabTitle: typeof sqlLabApi.onDidChangeTabTitle = (
|
||||
|
||||
export const sqlLab: typeof sqlLabApi = {
|
||||
CTASMethod,
|
||||
getActivePanel,
|
||||
getCurrentTab,
|
||||
onDidChangeEditorDatabase,
|
||||
onDidChangeEditorSchema,
|
||||
|
||||
Reference in New Issue
Block a user