mirror of
https://github.com/apache/superset.git
synced 2026-04-21 00:54:44 +00:00
23 lines
642 B
JavaScript
23 lines
642 B
JavaScript
import React from 'react';
|
|
|
|
import CopyToClipboard from '../../components/CopyToClipboard';
|
|
import CopyQueryTabUrl from './CopyQueryTabUrl';
|
|
import Button from '../../components/Button';
|
|
import { t } from '../../locales';
|
|
|
|
export default class ShareQueryBtn extends CopyQueryTabUrl {
|
|
render() {
|
|
return (
|
|
<CopyToClipboard
|
|
copyNode={(
|
|
<Button bsSize="small" className="toggleSave">
|
|
<i className="fa fa-clipboard" /> {t('Share Query')}
|
|
</Button>
|
|
)}
|
|
tooltipText={t('copy URL to clipboard')}
|
|
shouldShowText={false}
|
|
getText={this.getUrl.bind(this)}
|
|
/>);
|
|
}
|
|
}
|