[sql_lab]Disabled run query button if sql query editor is empty (#4728)

* Disabled run query button if sql query editor is empty

* Removing unnecessary white space

* Fix failing test for sql props

* Adding sql variable into propTypes and defaultProps
This commit is contained in:
Prashant
2018-04-04 03:28:23 +05:30
committed by Maxime Beauchemin
parent f6fe11f76e
commit 7a497e2f6b
3 changed files with 6 additions and 0 deletions

View File

@@ -215,6 +215,7 @@ class SqlEditor extends React.PureComponent {
runQuery={this.runQuery}
selectedText={qe.selectedText}
stopQuery={this.stopQuery}
sql={this.state.sql}
/>
</span>
<span className="m-r-5">