mirror of
https://github.com/pgadmin-org/pgadmin4.git
synced 2025-02-25 18:55:31 -06:00
Fix an issue where the edit icon vanished and the default tab wasn't shown when advanced-editing a column in the table dialogue. Fixes #1704
This commit is contained in:
parent
cc0cb83277
commit
2440f89a71
@ -112,8 +112,11 @@ function($, _, S, pgAdmin, pgBrowser, Backform, alertify) {
|
||||
id: 'security', label: '{{ _("Security") }}', type: 'group',
|
||||
// Show/Hide security group for nodes under the catalog
|
||||
visible: function(args) {
|
||||
if (args && 'node_info' in args && 'catalog' in args.node_info) {
|
||||
return false;
|
||||
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;
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user