Fixed an issue where Execute/Refresh button should not be disabled when we run the empty query. Fixes #6489

pull/55/head
Nikhil Mohite 2021-06-23 11:40:11 +05:30 committed by Akshay Joshi
parent 09d8d0f362
commit a533620684
3 changed files with 26 additions and 1 deletions

View File

@ -11,6 +11,7 @@ notes for it.
.. toctree::
:maxdepth: 1
release_notes_5_5
release_notes_5_4
release_notes_5_3
release_notes_5_2

View File

@ -0,0 +1,20 @@
************
Version 5.5
************
Release date: 2021-07-15
This release contains a number of bug fixes and new features since the release of pgAdmin4 5.4.
New features
************
Housekeeping
************
Bug fixes
*********
| `Issue #6489 <https://redmine.postgresql.org/issues/6489>`_ - Fixed an issue where Execute/Refresh button should not be disabled when we run the empty query.

View File

@ -56,7 +56,11 @@ class ExecuteQuery {
execute(sqlStatement, explainPlan, connect) {
// If it is an empty query, do nothing.
if (sqlStatement.length <= 0) return;
if (sqlStatement.length <= 0) {
// Enable query execution button if user execute empty query.
$('#btn-flash').prop('disabled', false);
return;
}
const self = this;
self.explainPlan = explainPlan;