mirror of
https://github.com/grafana/grafana.git
synced 2025-02-25 18:55:37 -06:00
ExportJson: Add missing tracking in copy to clipboard button (#97000)
This commit is contained in:
parent
18c8ed3088
commit
150352930d
@ -11,6 +11,7 @@ import { createSuccessNotification } from 'app/core/copy/appNotification';
|
|||||||
import { t, Trans } from 'app/core/internationalization';
|
import { t, Trans } from 'app/core/internationalization';
|
||||||
import { dispatch } from 'app/store/store';
|
import { dispatch } from 'app/store/store';
|
||||||
|
|
||||||
|
import { DashboardInteractions } from '../../utils/interactions';
|
||||||
import { ShareExportTab } from '../ShareExportTab';
|
import { ShareExportTab } from '../ShareExportTab';
|
||||||
|
|
||||||
const selector = e2eSelectors.pages.ExportDashboardDrawer.ExportAsJson;
|
const selector = e2eSelectors.pages.ExportDashboardDrawer.ExportAsJson;
|
||||||
@ -94,6 +95,9 @@ function ExportAsJsonRenderer({ model }: SceneComponentProps<ExportAsJson>) {
|
|||||||
icon="copy"
|
icon="copy"
|
||||||
disabled={dashboardJson.loading}
|
disabled={dashboardJson.loading}
|
||||||
getText={() => dashboardJson.value ?? ''}
|
getText={() => dashboardJson.value ?? ''}
|
||||||
|
onClipboardCopy={() => {
|
||||||
|
DashboardInteractions.exportCopyJsonClicked();
|
||||||
|
}}
|
||||||
>
|
>
|
||||||
<Trans i18nKey="export.json.copy-button">Copy to clipboard</Trans>
|
<Trans i18nKey="export.json.copy-button">Copy to clipboard</Trans>
|
||||||
</ClipboardButton>
|
</ClipboardButton>
|
||||||
|
Loading…
Reference in New Issue
Block a user