mirror of
https://github.com/open-metadata/OpenMetadata.git
synced 2025-09-26 17:34:41 +00:00
ui: added title for policy and role page & fix multi selection issue in create policy (#12904)
This commit is contained in:
parent
de7c5824cb
commit
99b57db6db
@ -103,11 +103,11 @@ const PoliciesDetailPage = () => {
|
|||||||
url: policiesPath,
|
url: policiesPath,
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
name: fqn,
|
name: getEntityName(policy),
|
||||||
url: '',
|
url: '',
|
||||||
},
|
},
|
||||||
],
|
],
|
||||||
[fqn]
|
[policy]
|
||||||
);
|
);
|
||||||
|
|
||||||
const fetchPolicyPermission = async () => {
|
const fetchPolicyPermission = async () => {
|
||||||
@ -368,7 +368,14 @@ const PoliciesDetailPage = () => {
|
|||||||
</ErrorPlaceHolder>
|
</ErrorPlaceHolder>
|
||||||
) : (
|
) : (
|
||||||
<div className="policies-detail" data-testid="policy-details">
|
<div className="policies-detail" data-testid="policy-details">
|
||||||
|
<Typography.Title
|
||||||
|
className="m-b-0 m-t-xs"
|
||||||
|
data-testid="heading"
|
||||||
|
level={5}>
|
||||||
|
{getEntityName(policy)}
|
||||||
|
</Typography.Title>
|
||||||
<Description
|
<Description
|
||||||
|
className="m-b-md"
|
||||||
description={policy.description || ''}
|
description={policy.description || ''}
|
||||||
entityFqn={policy.fullyQualifiedName}
|
entityFqn={policy.fullyQualifiedName}
|
||||||
entityName={getEntityName(policy)}
|
entityName={getEntityName(policy)}
|
||||||
|
@ -253,6 +253,7 @@ const RuleForm: FC<RuleFormProps> = ({ ruleData, setRuleData }) => {
|
|||||||
]}>
|
]}>
|
||||||
<TreeSelect
|
<TreeSelect
|
||||||
treeCheckable
|
treeCheckable
|
||||||
|
autoClearSearchValue={false}
|
||||||
className="w-full"
|
className="w-full"
|
||||||
data-testid="resources"
|
data-testid="resources"
|
||||||
placeholder={t('label.select-field', {
|
placeholder={t('label.select-field', {
|
||||||
@ -281,6 +282,7 @@ const RuleForm: FC<RuleFormProps> = ({ ruleData, setRuleData }) => {
|
|||||||
]}>
|
]}>
|
||||||
<TreeSelect
|
<TreeSelect
|
||||||
treeCheckable
|
treeCheckable
|
||||||
|
autoClearSearchValue={false}
|
||||||
className="w-full"
|
className="w-full"
|
||||||
data-testid="operations"
|
data-testid="operations"
|
||||||
placeholder={t('label.select-field', {
|
placeholder={t('label.select-field', {
|
||||||
|
@ -86,11 +86,11 @@ const RolesDetailPage = () => {
|
|||||||
url: rolesPath,
|
url: rolesPath,
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
name: fqn,
|
name: getEntityName(role),
|
||||||
url: '',
|
url: '',
|
||||||
},
|
},
|
||||||
],
|
],
|
||||||
[fqn]
|
[role]
|
||||||
);
|
);
|
||||||
|
|
||||||
const fetchRolePermission = async () => {
|
const fetchRolePermission = async () => {
|
||||||
@ -276,7 +276,14 @@ const RolesDetailPage = () => {
|
|||||||
</ErrorPlaceHolder>
|
</ErrorPlaceHolder>
|
||||||
) : (
|
) : (
|
||||||
<div className="roles-detail" data-testid="role-details">
|
<div className="roles-detail" data-testid="role-details">
|
||||||
|
<Typography.Title
|
||||||
|
className="m-b-0 m-t-xs"
|
||||||
|
data-testid="heading"
|
||||||
|
level={5}>
|
||||||
|
{getEntityName(role)}
|
||||||
|
</Typography.Title>
|
||||||
<Description
|
<Description
|
||||||
|
className="m-b-md"
|
||||||
description={role.description || ''}
|
description={role.description || ''}
|
||||||
entityFqn={role.fullyQualifiedName}
|
entityFqn={role.fullyQualifiedName}
|
||||||
entityName={getEntityName(role)}
|
entityName={getEntityName(role)}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user