mirror of
https://github.com/pgadmin-org/pgadmin4.git
synced 2025-02-25 18:55:31 -06:00
Fixed an issue where privileges not shown in catalog nodes for Properties tab. Fixes #6743
This commit is contained in:
parent
32e97b6422
commit
346ee6ba5f
@ -9,7 +9,6 @@
|
||||
|
||||
import gettext from 'sources/gettext';
|
||||
import BaseUISchema from 'sources/SchemaView/base_schema.ui';
|
||||
import SecLabelSchema from '../../../../static/js/sec_label.ui';
|
||||
|
||||
export default class CatalogSchema extends BaseUISchema {
|
||||
constructor(fieldOptions = {}, initValues) {
|
||||
@ -51,14 +50,7 @@ export default class CatalogSchema extends BaseUISchema {
|
||||
},{
|
||||
id: 'description', label: gettext('Comment'), cell: 'string',
|
||||
type: 'multiline',
|
||||
},{
|
||||
id: 'seclabels', label: gettext('Security labels'),
|
||||
schema: new SecLabelSchema(),
|
||||
editable: false, type: 'collection',
|
||||
group: gettext('Security'), mode: ['edit', 'create'],
|
||||
min_version: 90200,
|
||||
canAdd: false, canEdit: false, canDelete: false,
|
||||
},
|
||||
}
|
||||
];
|
||||
}
|
||||
}
|
||||
|
@ -173,7 +173,8 @@ export function getNodeView(nodeType, treeNodeInfo, actionType, itemNodeData, fo
|
||||
|
||||
let schema = nodeObj.getSchema.call(nodeObj, treeNodeInfo, itemNodeData);
|
||||
// Show/Hide security group for nodes under the catalog
|
||||
if('catalog' in treeNodeInfo) {
|
||||
if('catalog' in treeNodeInfo
|
||||
&& formType !== 'tab') {
|
||||
schema.filterGroups = [gettext('Security')];
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user