mirror of
https://github.com/apache/superset.git
synced 2026-04-09 19:35:21 +00:00
Add email-to option in action buttons for dashboard and slice (#1705)
* Add email-to option in explore action buttons * email to option for dashboard
This commit is contained in:
@@ -27,12 +27,17 @@ export default class URLShortLinkButton extends React.Component {
|
||||
}
|
||||
|
||||
renderPopover() {
|
||||
const emailBody = `Check out this slice: ${this.state.shortUrl}`;
|
||||
return (
|
||||
<Popover id="shorturl-popover">
|
||||
<CopyToClipboard
|
||||
text={this.state.shortUrl}
|
||||
copyNode={<i className="fa fa-clipboard" title="Copy to clipboard"></i>}
|
||||
/>
|
||||
|
||||
<a href={`mailto:?Subject=Superset%20Slice%20&Body=${emailBody}`}>
|
||||
<i className="fa fa-envelope"></i>
|
||||
</a>
|
||||
</Popover>
|
||||
);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user