Panels: Add troubleshooting snapshot (#54417)

This commit is contained in:
Ryan McKinley
2022-09-02 15:38:35 -07:00
committed by GitHub
parent 37a0207463
commit 7e53bd107c
9 changed files with 717 additions and 31 deletions

View File

@@ -10,6 +10,7 @@ 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 { InspectContent } from './InspectContent';
@@ -49,6 +50,10 @@ const PanelInspectorUnconnected = ({ panel, dashboard, plugin }: Props) => {
return null;
}
if (defaultTab === InspectTab.Debug) {
return <DebugWizard panel={panel} plugin={plugin} onClose={onClose} />;
}
return (
<InspectContent
dashboard={dashboard}