Panel inspect: Fix file names of data download included uninterpolated variable names. (#98832)

* use panel title for dataName instead of panel.getDisplayTitle()

* Interpolate variables in panel title for downloads in scenes

---------

Co-authored-by: oscarkilhed <oscar.kilhed@grafana.com>
This commit is contained in:
Alex Rosenfeld
2025-01-14 09:35:54 +01:00
committed by GitHub
co-authored by oscarkilhed
parent 9b34a56d7c
commit 29a8fbd898
2 changed files with 2 additions and 2 deletions
@@ -62,7 +62,7 @@ export class InspectDataTab extends SceneObjectBase<InspectDataTabState> {
hasTransformations={hasTransformations(dataProvider)}
timeZone={timeRange.getTimeZone()}
panelPluginId={panel.state.pluginId}
dataName={panel.state.title}
dataName={sceneGraph.interpolate(panel, panel.state.title)}
fieldConfig={panel.state.fieldConfig}
onOptionsChange={model.onOptionsChange}
/>
@@ -94,7 +94,7 @@ export const InspectContent = ({
>
{activeTab === InspectTab.Data && (
<InspectDataTab
dataName={panel.getDisplayTitle()}
dataName={panelTitle}
panelPluginId={panel.type}
fieldConfig={panel.fieldConfig}
hasTransformations={Boolean(panel.transformations?.length)}