diff --git a/public/app/features/dashboard-scene/sharing/ExportButton/ExportAsJson.tsx b/public/app/features/dashboard-scene/sharing/ExportButton/ExportAsJson.tsx index a4819435141..dabd2bf4a28 100644 --- a/public/app/features/dashboard-scene/sharing/ExportButton/ExportAsJson.tsx +++ b/public/app/features/dashboard-scene/sharing/ExportButton/ExportAsJson.tsx @@ -11,6 +11,7 @@ import { createSuccessNotification } from 'app/core/copy/appNotification'; import { t, Trans } from 'app/core/internationalization'; import { dispatch } from 'app/store/store'; +import { DashboardInteractions } from '../../utils/interactions'; import { ShareExportTab } from '../ShareExportTab'; const selector = e2eSelectors.pages.ExportDashboardDrawer.ExportAsJson; @@ -94,6 +95,9 @@ function ExportAsJsonRenderer({ model }: SceneComponentProps) { icon="copy" disabled={dashboardJson.loading} getText={() => dashboardJson.value ?? ''} + onClipboardCopy={() => { + DashboardInteractions.exportCopyJsonClicked(); + }} > Copy to clipboard