mirror of
https://github.com/pgadmin-org/pgadmin4.git
synced 2025-02-25 18:55:31 -06:00
Rename the SecurityGroupUnderSchema to SecurityGroupSchema, and
redefined in the database (instead of schema) javascript module, as it is also used by the foreign-server node too. Reported by: Neel Patel
This commit is contained in:
@@ -468,6 +468,20 @@ define('pgadmin.node.database', [
|
||||
})
|
||||
});
|
||||
|
||||
pgBrowser.SecurityGroupSchema = {
|
||||
id: 'security', label: gettext('Security'), type: 'group',
|
||||
// Show/Hide security group for nodes under the catalog
|
||||
visible: function(args) {
|
||||
if (args && 'node_info' in args) {
|
||||
// If node_info is not present in current object then it might in its
|
||||
// parent in case if we used sub node control
|
||||
var node_info = args.node_info || args.handler.node_info;
|
||||
return 'catalog' in node_info ? false : true;
|
||||
}
|
||||
return true;
|
||||
}
|
||||
};
|
||||
|
||||
function connect_to_database(obj, data, tree, item, interactive) {
|
||||
connect(obj, data, tree, item)
|
||||
}
|
||||
|
Reference in New Issue
Block a user