mirror of
https://github.com/pgadmin-org/pgadmin4.git
synced 2025-02-25 18:55:31 -06:00
Fix multiple Query Tool, ERD title related issues.
This commit is contained in:
@@ -331,7 +331,7 @@ export default class SQLEditor {
|
||||
queryToolForm +=`
|
||||
</form>
|
||||
<script>
|
||||
document.getElementById("title").value = "${_.escape(panel_title.replace('\\', '\\\\'))}";
|
||||
document.getElementById("title").value = "${_.escape(panel_title)}";
|
||||
document.getElementById("queryToolForm").submit();
|
||||
</script>
|
||||
`;
|
||||
|
||||
@@ -95,6 +95,7 @@ export default function QueryToolComponent({params, pgWindow, pgAdmin, selectedN
|
||||
connection_status_msg: '',
|
||||
params: {
|
||||
...params,
|
||||
title: _.unescape(params.title),
|
||||
is_query_tool: params.is_query_tool == 'true' ? true : false,
|
||||
node_name: retrieveNodeName(selectedNodeInfo),
|
||||
},
|
||||
@@ -684,6 +685,7 @@ export default function QueryToolComponent({params, pgWindow, pgAdmin, selectedN
|
||||
database: {
|
||||
_id: selectedConn.did,
|
||||
label: selectedConn.database_name,
|
||||
_label: selectedConn.database_name,
|
||||
},
|
||||
};
|
||||
|
||||
|
||||
@@ -15,7 +15,7 @@ import Notify from '../../../../static/js/helpers/Notifier';
|
||||
const pgAdmin = pgWindow.pgAdmin;
|
||||
|
||||
export function getDatabaseLabel(parentData) {
|
||||
return parentData.database ? parentData.database.label
|
||||
return parentData.database ? parentData.database._label
|
||||
: parentData.server?.db;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user