mirror of
https://github.com/pgadmin-org/pgadmin4.git
synced 2025-02-25 18:55:31 -06:00
Fixed issue of opening query tool from new query tool icon beside connection status. #5575
This commit is contained in:
parent
c2637be03f
commit
9e078c0fa8
@ -32,8 +32,8 @@ export function generateUrl(trans_id, parentData, sqlId) {
|
||||
if(parentData.database.label) {
|
||||
url_endpoint += `&database_name=${parentData.database.label}`;
|
||||
}
|
||||
if(parentData.server.user.name){
|
||||
url_endpoint += `&user=${parentData.server.user.name}`;
|
||||
if(!parentData.server.user_name && parentData.server.user?.name) {
|
||||
url_endpoint += `&user=${parentData.server.user?.name}`;
|
||||
}
|
||||
}
|
||||
|
||||
|
@ -134,9 +134,12 @@ function generateUrl(trans_id, connectionData, nodeData, parentData) {
|
||||
+`&sgid=${parentData.server_group._id}`
|
||||
+`&sid=${parentData.server._id}`
|
||||
+`&did=${parentData.database._id}`
|
||||
+`&user=${parentData.server.user.name}`
|
||||
+`&server_type=${parentData.server.server_type}`;
|
||||
|
||||
if(!parentData.server.user_name && parentData.server.user?.name) {
|
||||
url_endpoint += `&user=${parentData.server.user?.name}`;
|
||||
}
|
||||
|
||||
return url_endpoint;
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user