Panels: Add panel debug support helper (#54678)

This commit is contained in:
Ryan McKinley
2022-09-09 14:35:52 -07:00
committed by GitHub
parent c49c238974
commit 4125dd57ee
9 changed files with 48 additions and 30 deletions

View File

@@ -10,8 +10,8 @@ import { getPanelStateForModel } from 'app/features/panel/state/selectors';
import { StoreState } from 'app/types';
import { GetDataOptions } from '../../../query/state/PanelQueryRunner';
import { DebugWizard } from '../DebugWizard/DebugWizard';
import { usePanelLatestData } from '../PanelEditor/usePanelLatestData';
import { SupportSnapshot } from '../SupportSnapshot/SupportSnapshot';
import { InspectContent } from './InspectContent';
import { useDatasourceMetadata, useInspectTabs } from './hooks';
@@ -50,8 +50,8 @@ const PanelInspectorUnconnected = ({ panel, dashboard, plugin }: Props) => {
return null;
}
if (defaultTab === InspectTab.Debug) {
return <DebugWizard panel={panel} plugin={plugin} onClose={onClose} />;
if (defaultTab === InspectTab.Support) {
return <SupportSnapshot panel={panel} plugin={plugin} onClose={onClose} />;
}
return (