mirror of
https://github.com/pgadmin-org/pgadmin4.git
synced 2026-10-24 21:57:39 -05:00
Fixed issue of opening query tool from new query tool icon beside connection status. #5575
This commit is contained in:
1 parent
c2637be03f
commit
9e078c0fa8
2 files changed
+6
-3
No files matched your search
@@ -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;
|
||||
}
|
||||
|
||||
|
||||
Reference in new issue
Block a user