mirror of
https://github.com/pgadmin-org/pgadmin4.git
synced 2025-01-09 23:54:09 -06:00
Fixed an issue where the titles in query tabs are different. Fixes #6618
This commit is contained in:
parent
8d53c10643
commit
703478c13d
@ -25,6 +25,7 @@ Bug fixes
|
||||
| `Issue #6574 <https://redmine.postgresql.org/issues/6574>`_ - Fixed an issue where paste is not working through Right-Click option on PSQL.
|
||||
| `Issue #6580 <https://redmine.postgresql.org/issues/6580>`_ - Fixed TypeError 'NoneType' object is not sub scriptable.
|
||||
| `Issue #6586 <https://redmine.postgresql.org/issues/6586>`_ - Fixed incorrect tablespace options in the drop-down for move objects dialog.
|
||||
| `Issue #6618 <https://redmine.postgresql.org/issues/6618>`_ - Fixed an issue where the titles in query tabs are different.
|
||||
| `Issue #6619 <https://redmine.postgresql.org/issues/6619>`_ - Fixed incorrect binary path issue when the user deletes the binary path from the preferences.
|
||||
| `Issue #6643 <https://redmine.postgresql.org/issues/6643>`_ - Ensure that all the required options should be loaded when the Range data type is selected while creating a custom data type.
|
||||
| `Issue #6650 <https://redmine.postgresql.org/issues/6650>`_ - Fixed dashboard server activity issue when active_since parameter is None.
|
||||
|
@ -23,7 +23,7 @@ function isServerInformationAvailable(parentData) {
|
||||
return parentData.server === undefined;
|
||||
}
|
||||
|
||||
export function getPanelTitle(pgBrowser, selected_item=null, custom_title=null, parentData=null, conn_title=false) {
|
||||
export function getPanelTitle(pgBrowser, selected_item=null, custom_title=null, parentData=null, conn_title=false, db_label=null) {
|
||||
var preferences = pgBrowser.get_preferences_for_module('browser');
|
||||
if(selected_item == null && parentData == null) {
|
||||
selected_item = pgBrowser.treeMenu.selected();
|
||||
@ -36,7 +36,10 @@ export function getPanelTitle(pgBrowser, selected_item=null, custom_title=null,
|
||||
}
|
||||
}
|
||||
|
||||
const db_label = getDatabaseLabel(parentData);
|
||||
if(!db_label) {
|
||||
db_label = getDatabaseLabel(parentData);
|
||||
}
|
||||
|
||||
var qt_title_placeholder = '';
|
||||
if (!conn_title) {
|
||||
if (custom_title) {
|
||||
|
@ -2711,7 +2711,10 @@ define('tools.querytool', [
|
||||
|
||||
var server_data = pgWindow.default.pgAdmin.Browser.treeMenu.findNode(tree_data.slice(0,2));
|
||||
var database_data = pgWindow.default.pgAdmin.Browser.treeMenu.findNode(tree_data.slice(0,4));
|
||||
let conn_title = panelTitleFunc.getPanelTitle(pgWindow.default.pgAdmin.Browser, null, null, null, true);
|
||||
var dbData = tree_data.slice(0,3);
|
||||
dbData.push('database/' + url_params.did);
|
||||
var dbName = pgWindow.default.pgAdmin.Browser.treeMenu.findNode(dbData).data.label;
|
||||
let conn_title = panelTitleFunc.getPanelTitle(pgWindow.default.pgAdmin.Browser, null, null, null, true, dbName);
|
||||
self.gridView.set_editor_title(_.unescape(conn_title));
|
||||
let connection_data = {
|
||||
'server_group': self.gridView.handler.url_params.sgid,
|
||||
|
Loading…
Reference in New Issue
Block a user