Fixed an issue where privileges not shown in catalog nodes for Properties tab. Fixes #6743

This commit is contained in:
Rahul Shirsat 2021-09-17 20:50:29 +05:30 committed by Akshay Joshi
parent 32e97b6422
commit 346ee6ba5f
2 changed files with 3 additions and 10 deletions

View File

@ -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,
},
}
];
}
}

View File

@ -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')];
}