koszti commented on a change in pull request #15403:
URL: https://github.com/apache/superset/pull/15403#discussion_r667410155
##########
File path: superset-frontend/src/SqlLab/components/SqlEditor.jsx
##########
@@ -242,6 +245,13 @@ class SqlEditor extends React.PureComponent {
}
}
+ onBeforeUnload(event) {
+ if (this.props.latestQuery?.state === 'running') {
+ event.preventDefault();
+ this.stopQuery();
Review comment:
This is now configurable at `Database -> Performance -> Cancel query on
window unload event` and defaults to False to keep the current behaviour.
Commit: e5223ecb03f3e48f2c9d0b43a851ed9eefb74ff6
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: [email protected]
For queries about this service, please contact Infrastructure at:
[email protected]
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]