diff --git a/superset/assets/javascripts/dashboard/components/Controls.jsx b/superset/assets/javascripts/dashboard/components/Controls.jsx index 503dba8747..86891f15da 100644 --- a/superset/assets/javascripts/dashboard/components/Controls.jsx +++ b/superset/assets/javascripts/dashboard/components/Controls.jsx @@ -44,6 +44,9 @@ class Controls extends React.PureComponent { render() { const dashboard = this.props.dashboard; const canSave = dashboard.context.dash_save_perm; + const emailBody = `Checkout this dashboard: ${window.location.href}`; + const emailLink = 'mailto:?Subject=Superset%20Dashboard%20' + + `${dashboard.dashboard_title}&Body=${emailBody}`; return ( ); } diff --git a/superset/assets/javascripts/explore/components/URLShortLinkButton.jsx b/superset/assets/javascripts/explore/components/URLShortLinkButton.jsx index ac6adb475e..02d513118f 100644 --- a/superset/assets/javascripts/explore/components/URLShortLinkButton.jsx +++ b/superset/assets/javascripts/explore/components/URLShortLinkButton.jsx @@ -27,12 +27,17 @@ export default class URLShortLinkButton extends React.Component { } renderPopover() { + const emailBody = `Check out this slice: ${this.state.shortUrl}`; return ( } /> +    + + + ); }