diff --git a/docs/en_US/release_notes_4_27.rst b/docs/en_US/release_notes_4_27.rst index 58f1ded60..a000bd8da 100644 --- a/docs/en_US/release_notes_4_27.rst +++ b/docs/en_US/release_notes_4_27.rst @@ -26,4 +26,5 @@ Bug fixes | `Issue #5839 `_ - Ensure that multiple extensions can be dropped from the properties tab. | `Issue #5841 `_ - Fixed an issue where the server is not able to connect using the service. | `Issue #5843 `_ - Fixed an issue where the 'PARALLEL UNSAFE' option is missing from reverse engineering SQL of function/procedure. -| `Issue #5845 `_ - Fixed an issue where the query tool is not fetching more than 1000 rows for the table does not have any primary key. \ No newline at end of file +| `Issue #5845 `_ - Fixed an issue where the query tool is not fetching more than 1000 rows for the table does not have any primary key. +| `Issue #5861 `_ - Ensure that the 'Remove Server' option should be visible in the context menu. \ No newline at end of file diff --git a/web/pgadmin/browser/server_groups/servers/static/js/server.js b/web/pgadmin/browser/server_groups/servers/static/js/server.js index 8a4be22b4..be737da4e 100644 --- a/web/pgadmin/browser/server_groups/servers/static/js/server.js +++ b/web/pgadmin/browser/server_groups/servers/static/js/server.js @@ -58,7 +58,7 @@ define('pgadmin.node.server', [ label: gettext('Server'), canDrop: function(node){ var serverOwner = node.user_id; - if (serverOwner != current_user.id) + if (serverOwner != current_user.id && !_.isUndefined(serverOwner)) return false; return true; }, @@ -763,6 +763,14 @@ define('pgadmin.node.server', [ }, { id: 'server_owner', label: gettext('Shared Server Owner'), type: 'text', mode: ['properties'], + visible:function(model){ + var serverOwner = model.attributes.user_id; + if (model.attributes.shared && serverOwner != current_user.id && pgAdmin.server_mode == 'True'){ + return true; + } + return false; + + }, }, { id: 'server_type', label: gettext('Server type'), type: 'options', @@ -1239,7 +1247,7 @@ define('pgadmin.node.server', [ // Let's not change the status of the tree node now. if (!_wasConnected) { tree.setInode(_item); - if (data.shared && pgAdmin.server_mode == 'True'){ + if (_data.shared && pgAdmin.server_mode == 'True'){ tree.addIcon(_item, {icon: 'icon-shared-server-not-connected'}); }else{ tree.addIcon(_item, {icon: 'icon-server-not-connected'});