From 29a8fbd89848693602af2ba8c60e193720f9bdc9 Mon Sep 17 00:00:00 2001 From: Alex Rosenfeld Date: Tue, 14 Jan 2025 03:35:54 -0500 Subject: [PATCH] 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 --- public/app/features/dashboard-scene/inspect/InspectDataTab.tsx | 2 +- .../features/dashboard/components/Inspector/InspectContent.tsx | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/public/app/features/dashboard-scene/inspect/InspectDataTab.tsx b/public/app/features/dashboard-scene/inspect/InspectDataTab.tsx index 9b6805153b4..24d6a003306 100644 --- a/public/app/features/dashboard-scene/inspect/InspectDataTab.tsx +++ b/public/app/features/dashboard-scene/inspect/InspectDataTab.tsx @@ -62,7 +62,7 @@ export class InspectDataTab extends SceneObjectBase { 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} /> diff --git a/public/app/features/dashboard/components/Inspector/InspectContent.tsx b/public/app/features/dashboard/components/Inspector/InspectContent.tsx index 7dfc6c7d54e..dc28685e098 100644 --- a/public/app/features/dashboard/components/Inspector/InspectContent.tsx +++ b/public/app/features/dashboard/components/Inspector/InspectContent.tsx @@ -94,7 +94,7 @@ export const InspectContent = ({ > {activeTab === InspectTab.Data && (