diff --git a/web/pgadmin/browser/server_groups/servers/databases/static/js/database.js b/web/pgadmin/browser/server_groups/servers/databases/static/js/database.js index 34418bb2f..d525cffc7 100644 --- a/web/pgadmin/browser/server_groups/servers/databases/static/js/database.js +++ b/web/pgadmin/browser/server_groups/servers/databases/static/js/database.js @@ -99,6 +99,9 @@ define('pgadmin.node.database', [ name: 'generate_erd', node: 'database', module: this, applies: ['object', 'context'], callback: 'generate_erd', category: 'erd', priority: 5, label: gettext('Generate ERD'), + enable: (node) => { + return node.allowConn; + } }]); _.bindAll(this, 'connection_lost');