mirror of
https://github.com/apache/superset.git
synced 2026-04-21 17:14:57 +00:00
[sqllab] add support for results backends (#1377)
* [sqllab] add support for results backends Long running SQL queries (beyond the scope of a web request) can now use a k/v store to hold their result sets. * Addressing comments, fixed js tests * Fixing mysql has gone away * Adressing more comments * Touchups
This commit is contained in:
committed by
GitHub
parent
7dfe891cc1
commit
6fb3b305ad
@@ -7,12 +7,18 @@ const propTypes = {
|
||||
modalTitle: PropTypes.node.isRequired,
|
||||
modalBody: PropTypes.node.isRequired,
|
||||
beforeOpen: PropTypes.func,
|
||||
onExit: PropTypes.func,
|
||||
isButton: PropTypes.bool,
|
||||
bsSize: PropTypes.string,
|
||||
className: PropTypes.string,
|
||||
};
|
||||
|
||||
const defaultProps = {
|
||||
beforeOpen: () => {},
|
||||
onExit: () => {},
|
||||
isButton: false,
|
||||
bsSize: null,
|
||||
className: '',
|
||||
};
|
||||
|
||||
export default class ModalTrigger extends React.Component {
|
||||
@@ -42,7 +48,13 @@ export default class ModalTrigger extends React.Component {
|
||||
return (
|
||||
<a href="#" className={classNames} onClick={this.open}>
|
||||
{this.props.triggerNode}
|
||||
<Modal show={this.state.showModal} onHide={this.close}>
|
||||
<Modal
|
||||
show={this.state.showModal}
|
||||
onHide={this.close}
|
||||
onExit={this.props.onExit}
|
||||
bsSize={this.props.bsSize}
|
||||
className={this.props.className}
|
||||
>
|
||||
<Modal.Header closeButton>
|
||||
<Modal.Title>{this.props.modalTitle}</Modal.Title>
|
||||
</Modal.Header>
|
||||
|
||||
Reference in New Issue
Block a user