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:
Ashesh Vashi
2017-09-11 13:13:36 +05:30
parent 8c8c0e78ca
commit ac2512799e
14 changed files with 26 additions and 26 deletions

View File

@@ -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)
}