Fixed an issue where expanding the Shared Servers group would open the properties dialog for another server.

This commit is contained in:
Pradip Parkale 2022-08-11 13:10:18 +05:30 committed by Akshay Joshi
parent 9a7859c5cb
commit b4e5717bde

View File

@ -636,7 +636,7 @@ define('pgadmin.node.server', [
if (res.shared && _.isNull(res.username) && data.user_id != current_user.id) { if (res.shared && _.isNull(res.username) && data.user_id != current_user.id) {
if (!res.service) { if (!res.service) {
pgAdmin.Browser.Node.callbacks.show_obj_properties.call( pgAdmin.Browser.Node.callbacks.show_obj_properties.call(
pgAdmin.Browser.Nodes[tree.itemData(item)._type], {action: 'edit'} pgAdmin.Browser.Nodes[tree.itemData(item)._type], {action: 'edit', 'item': item}
); );
data.is_connecting = false; data.is_connecting = false;
tree.unload(item); tree.unload(item);