From a5242dfaac2b7b10ddd4cf53e6efc807b1588f21 Mon Sep 17 00:00:00 2001 From: Haris Rozajac Date: Tue, 25 Nov 2025 22:47:40 -0700 Subject: [PATCH] base export externally label on dashboard shape --- .../sharing/ExportButton/ResourceExport.tsx | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) diff --git a/public/app/features/dashboard-scene/sharing/ExportButton/ResourceExport.tsx b/public/app/features/dashboard-scene/sharing/ExportButton/ResourceExport.tsx index 155fb72451e..3bf7a9836c3 100644 --- a/public/app/features/dashboard-scene/sharing/ExportButton/ResourceExport.tsx +++ b/public/app/features/dashboard-scene/sharing/ExportButton/ResourceExport.tsx @@ -44,10 +44,9 @@ export function ResourceExport({ dashboardJson.value?.json && 'spec' in dashboardJson.value.json && 'elements' in dashboardJson.value.json.spec; const showV2LibPanelAlert = isV2Dashboard && isSharingExternally && hasLibraryPanels; - const switchExportLabel = - exportMode === ExportMode.V2Resource - ? t('export.json.export-remove-ds-refs', 'Remove deployment details') - : t('share-modal.export.share-externally-label', `Export for sharing externally`); + const switchExportLabel = isV2Dashboard + ? t('export.json.export-remove-ds-refs', 'Remove deployment details') + : t('share-modal.export.share-externally-label', `Export for sharing externally`); const switchExportModeLabel = t('export.json.export-mode', 'Model'); const switchExportFormatLabel = t('export.json.export-format', 'Format');