Pass config to raw query editor
parent
cc5e940b98
commit
e2963e591a
|
@ -78,7 +78,7 @@ const QueryEditor = React.createClass({
|
|||
return (
|
||||
<div className="query-builder--tab-contents">
|
||||
<div>
|
||||
<RawQueryEditor query={q} onUpdate={this.handleEditRawText} />
|
||||
<RawQueryEditor query={q} config={query} onUpdate={this.handleEditRawText} />
|
||||
{this.renderLists()}
|
||||
</div>
|
||||
</div>
|
||||
|
|
|
@ -6,10 +6,16 @@ import {QUERY_TEMPLATES} from 'src/data_explorer/constants'
|
|||
|
||||
const ENTER = 13
|
||||
const ESCAPE = 27
|
||||
const {
|
||||
func,
|
||||
shape,
|
||||
string,
|
||||
} = PropTypes
|
||||
const RawQueryEditor = React.createClass({
|
||||
propTypes: {
|
||||
query: PropTypes.string.isRequired,
|
||||
onUpdate: PropTypes.func.isRequired,
|
||||
query: string.isRequired,
|
||||
onUpdate: func.isRequired,
|
||||
config: shape().isRequired,
|
||||
},
|
||||
|
||||
getInitialState() {
|
||||
|
|
Loading…
Reference in New Issue