Skip to content

Offer to format readonly SQL#602

Merged
simonw merged 1 commit intosimonw:masterfrom
rixx:format-readonly-sql
Nov 4, 2019
Merged

Offer to format readonly SQL#602
simonw merged 1 commit intosimonw:masterfrom
rixx:format-readonly-sql

Conversation

@rixx
Copy link
Contributor

@rixx rixx commented Oct 20, 2019

Following discussion in #601, this PR adds a "Format SQL" button to
read-only SQL (if the SQL actually differs from the formatting result).

It also removes a console error on readonly SQL queries.

Following discussion in simonw#601, this PR adds a "Format SQL" button to
read-only SQL (if the SQL actually differs from the formatting result).

It also removes a console error on readonly SQL queries.
@simonw simonw merged commit ee33022 into simonw:master Nov 4, 2019
@simonw
Copy link
Owner

simonw commented Nov 4, 2019

@simonw
Copy link
Owner

simonw commented Nov 4, 2019

I wonder if the Format SQL button should disappear in the read-only case once it has been clicked? It won't do anything if it's clicked again and there's no textarea for the user to mess up the now-formatted SQL.

@rixx rixx deleted the format-readonly-sql branch November 4, 2019 07:29
@rixx
Copy link
Contributor Author

rixx commented Nov 4, 2019

Not sure – I'm always a bit weirded out when elements that I clicked disappear on me.

simonw pushed a commit that referenced this pull request Nov 11, 2019
Following discussion in #601, this PR adds a "Format SQL" button to
read-only SQL (if the SQL actually differs from the formatting result).

It also removes a console error on readonly SQL queries.

Thanks, @rixx!
simonw pushed a commit that referenced this pull request Nov 15, 2019
Following discussion in #601, this PR adds a "Format SQL" button to
read-only SQL (if the SQL actually differs from the formatting result).

It also removes a console error on readonly SQL queries.

Thanks, @rixx!
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants