Fixed an issue where the user is not able to change the connection in Query Tool when any SQL file is opened. Fixes #6272

This commit is contained in:
Nikhil Mohite
2021-03-04 13:17:31 +05:30
committed by Akshay Joshi
parent 8be3517c6d
commit 9317fe21b2
2 changed files with 1 additions and 3 deletions

View File

@@ -30,4 +30,5 @@ Bug fixes
| `Issue #6253 <https://redmine.postgresql.org/issues/6253>`_ - Fixed an issue where the user is unable to create a subscription if the host/IP address for connection is 127.0.0.1.
| `Issue #6259 <https://redmine.postgresql.org/issues/6259>`_ - Ensure that proper error message should be shown on the properties and statistics tab in case of insufficient privileges for a subscription.
| `Issue #6260 <https://redmine.postgresql.org/issues/6260>`_ - Fixed an issue where the 'Create Slot' option is disabled in case of the same IP/host provided but the port is different.
| `Issue #6272 <https://redmine.postgresql.org/issues/6272>`_ - Fixed an issue where the user is not able to change the connection in Query Tool when any SQL file is opened.
| `Issue #6281 <https://redmine.postgresql.org/issues/6281>`_ - Fixed an issue where schema diff showing wrong SQL when comparing triggers with different when clause.

View File

@@ -9,7 +9,6 @@
import {getTreeNodeHierarchyFromIdentifier} from '../../../../static/js/tree/pgadmin_tree_node';
import gettext from 'sources/gettext';
import $ from 'jquery';
export function getDatabaseLabel(parentData) {
return parentData.database ? parentData.database.label
@@ -79,8 +78,6 @@ export function setQueryToolDockerTitle(panel, is_query_tool, panel_title, is_fi
export function set_renamable_option(panel, is_file) {
if(is_file || is_file == 'true') {
panel.renamable(false);
$('.conn-info-dd').hide();
$('.connection-data').css({pointerEvents: 'none', cursor: 'arrow'});
} else {
panel.renamable(true);
}