-
Notifications
You must be signed in to change notification settings - Fork 16.6k
More improvements to SQL Lab #1104
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Conversation
| ); | ||
| } | ||
| if (this.props.database && this.props.database.allow_run_async) { | ||
| runButtons.push( |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
would be nice to DRY this up. could make a <RunButton /> component to encapsulate the logic and returns the correct button based on the input:
<RunButton
async={this.props.database && this.props.database.allow_run_async}
sync={this.props.database && this.props.database.allow_run_sync}
isRunning={this.props.latestQuery && this.props.latestQuery.state === 'running'}
/>
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
could probably simply further by only passing the async prop. if async is false, use sync.
<RunButton
async={this.props.database && this.props.database.allow_run_async}
isRunning={this.props.latestQuery && this.props.latestQuery.state === 'running'}
/>
|
Sorry about the quality of the PR I was rushing things through to get a working release |
66982f4 to
162b8b0
Compare
Long column name were looking weird and icons were wrapping oddly
fa5d7ea to
6e6bf43
Compare
6e6bf43 to
a64ee9b
Compare
|
Rogue merging this PR. I'll sort things out around async mode in upcoming PRs. |
No description provided.