Add groups to permission

This commit is contained in:
Yang Luo
2023-09-06 00:10:33 +08:00
parent 9820801634
commit a9de7d3aef
3 changed files with 42 additions and 0 deletions

View File

@ -33,6 +33,7 @@ class PermissionListPage extends BaseListPage {
createdTime: moment().format(),
displayName: `New Permission - ${randomName}`,
users: [`${this.props.account.owner}/${this.props.account.name}`],
groups: [],
roles: [],
domains: [],
resourceType: "Application",
@ -179,6 +180,17 @@ class PermissionListPage extends BaseListPage {
return Setting.getTags(text, "users");
},
},
{
title: i18next.t("role:Sub groups"),
dataIndex: "groups",
key: "groups",
// width: '100px',
sorter: true,
...this.getColumnSearchProps("groups"),
render: (text, record, index) => {
return Setting.getTags(text, "groups");
},
},
{
title: i18next.t("role:Sub roles"),
dataIndex: "roles",