From 9fb6cbf683343a576775afccdf483d9ae923649b Mon Sep 17 00:00:00 2001 From: Dominik Prokop Date: Thu, 7 Dec 2023 14:46:03 +0100 Subject: [PATCH] DashboardScene: Use query options for relative time range calculation of the panel embed url (#79220) --- .../features/dashboard-scene/sharing/SharePanelEmbedTab.tsx | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/public/app/features/dashboard-scene/sharing/SharePanelEmbedTab.tsx b/public/app/features/dashboard-scene/sharing/SharePanelEmbedTab.tsx index f3f6b1060b0..fd66cd910b4 100644 --- a/public/app/features/dashboard-scene/sharing/SharePanelEmbedTab.tsx +++ b/public/app/features/dashboard-scene/sharing/SharePanelEmbedTab.tsx @@ -7,6 +7,7 @@ import { ShareEmbed } from 'app/features/dashboard/components/ShareModal/ShareEm import { buildParams, shareDashboardType } from 'app/features/dashboard/components/ShareModal/utils'; import { DashboardScene } from '../scene/DashboardScene'; +import { PanelTimeRange } from '../scene/PanelTimeRange'; import { getDashboardUrl } from '../utils/urlBuilders'; import { getPanelIdForVizPanel } from '../utils/utils'; @@ -39,12 +40,13 @@ function SharePanelEmbedTabRenderer({ model }: SceneComponentProps