diff --git a/public/app/features/dashboard/components/ShareModal/ShareExport.tsx b/public/app/features/dashboard/components/ShareModal/ShareExport.tsx index 40ea80ebb8c..6bf1bad1b84 100644 --- a/public/app/features/dashboard/components/ShareModal/ShareExport.tsx +++ b/public/app/features/dashboard/components/ShareModal/ShareExport.tsx @@ -39,7 +39,7 @@ export class ShareExport extends PureComponent { const { dashboard } = this.props; const { shareExternally } = this.state; - DashboardInteractions.exportSaveJsonClicked(); + DashboardInteractions.exportSaveJsonClicked({ externally: shareExternally }); if (shareExternally) { this.exporter.makeExportable(dashboard).then((dashboardJson) => { @@ -53,7 +53,7 @@ export class ShareExport extends PureComponent { onViewJson = () => { const { dashboard } = this.props; const { shareExternally } = this.state; - DashboardInteractions.exportViewJsonClicked(); + DashboardInteractions.exportViewJsonClicked({ externally: shareExternally }); if (shareExternally) { this.exporter.makeExportable(dashboard).then((dashboardJson) => { diff --git a/public/app/features/dashboard/utils/getPanelChromeProps.tsx b/public/app/features/dashboard/utils/getPanelChromeProps.tsx index 1197f5b6876..73209b86536 100644 --- a/public/app/features/dashboard/utils/getPanelChromeProps.tsx +++ b/public/app/features/dashboard/utils/getPanelChromeProps.tsx @@ -79,7 +79,7 @@ export function getPanelChromeProps(props: CommonProps) { const onCancelQuery = () => { props.panel.getQueryRunner().cancelQuery(); - DashboardInteractions.panelCancelQueryClicked(); + DashboardInteractions.panelCancelQueryClicked({ data_state: props.data.state }); }; const padding: PanelPadding = props.plugin.noPadding ? 'none' : 'md';