mirror of
https://github.com/apache/superset.git
synced 2026-04-19 08:04:53 +00:00
chore(sqllab): add logging for switching south panel tabs (#36168)
This commit is contained in:
@@ -31,6 +31,8 @@ import { SqlLabRootState } from 'src/SqlLab/types';
|
||||
import { useExtensionsContext } from 'src/extensions/ExtensionsContext';
|
||||
import ExtensionsManager from 'src/extensions/ExtensionsManager';
|
||||
import useQueryEditor from 'src/SqlLab/hooks/useQueryEditor';
|
||||
import useLogAction from 'src/logger/useLogAction';
|
||||
import { LOG_ACTIONS_SQLLAB_SWITCH_SOUTH_PANE_TAB } from 'src/logger/LogUtils';
|
||||
import QueryHistory from '../QueryHistory';
|
||||
import {
|
||||
STATUS_OPTIONS,
|
||||
@@ -126,8 +128,10 @@ const SouthPane = ({
|
||||
[pinnedTables],
|
||||
);
|
||||
const southPaneRef = createRef<HTMLDivElement>();
|
||||
const logAction = useLogAction({ sqlEditorId: queryEditorId });
|
||||
const switchTab = (id: string) => {
|
||||
dispatch(setActiveSouthPaneTab(id));
|
||||
logAction(LOG_ACTIONS_SQLLAB_SWITCH_SOUTH_PANE_TAB, { tab: id });
|
||||
};
|
||||
const removeTable = useCallback(
|
||||
(key, action) => {
|
||||
|
||||
Reference in New Issue
Block a user