Files
superset2/superset/assets/javascripts/SqlLab/components/ShareQuery.jsx
Hugh A. Miles II c6af4882cd [sqllab] Added share button to bottom menu (#4584)
* added sharebtn

* address comments
2018-03-09 15:10:36 -08:00

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)}
/>);
}
}