diff --git a/web/pgadmin/tools/sqleditor/templates/sqleditor/js/sqleditor.js b/web/pgadmin/tools/sqleditor/templates/sqleditor/js/sqleditor.js index 402c31613..75205d319 100644 --- a/web/pgadmin/tools/sqleditor/templates/sqleditor/js/sqleditor.js +++ b/web/pgadmin/tools/sqleditor/templates/sqleditor/js/sqleditor.js @@ -1709,9 +1709,12 @@ define( // Initial settings for delete row, copy row and paste row buttons. $("#btn-delete-row").prop('disabled', true); - if (!self.can_edit) { + // Do not disable save button in query tool + if(!self.is_query_tool && !self.can_edit) { $("#btn-save").prop('disabled', true); $("#btn-file-menu-dropdown").prop('disabled', true); + } + if (!self.can_edit) { $("#btn-delete-row").prop('disabled', true); $("#btn-copy-row").prop('disabled', true); $("#btn-paste-row").prop('disabled', true);