mirror of
https://github.com/datahub-project/datahub.git
synced 2025-08-18 14:16:48 +00:00
Minor fixes to policies redesign (#4309)
This commit is contained in:
parent
daab31d6ef
commit
2c3effa54d
@ -26,7 +26,7 @@ export default function AvatarsGroup({ users, groups, entityRegistry, maxCount =
|
|||||||
<div data-testid={`avatar-tag-${user.urn}`} key={`${user.urn}-${key}`}>
|
<div data-testid={`avatar-tag-${user.urn}`} key={`${user.urn}-${key}`}>
|
||||||
<CustomAvatar
|
<CustomAvatar
|
||||||
size={size}
|
size={size}
|
||||||
name={user?.username}
|
name={entityRegistry.getDisplayName(EntityType.CorpUser, user)}
|
||||||
url={`/${entityRegistry.getPathName(EntityType.CorpUser)}/${user.urn}`}
|
url={`/${entityRegistry.getPathName(EntityType.CorpUser)}/${user.urn}`}
|
||||||
photoUrl={
|
photoUrl={
|
||||||
user?.editableProperties?.pictureLink || user?.editableInfo?.pictureLink || undefined
|
user?.editableProperties?.pictureLink || user?.editableInfo?.pictureLink || undefined
|
||||||
@ -41,7 +41,7 @@ export default function AvatarsGroup({ users, groups, entityRegistry, maxCount =
|
|||||||
<div data-testid={`avatar-tag-${group.urn}`} key={`${group.urn}-${key}`}>
|
<div data-testid={`avatar-tag-${group.urn}`} key={`${group.urn}-${key}`}>
|
||||||
<CustomAvatar
|
<CustomAvatar
|
||||||
size={size}
|
size={size}
|
||||||
name={group?.name}
|
name={entityRegistry.getDisplayName(EntityType.CorpGroup, group)}
|
||||||
url={`/${entityRegistry.getPathName(EntityType.CorpGroup)}/${group.urn}`}
|
url={`/${entityRegistry.getPathName(EntityType.CorpGroup)}/${group.urn}`}
|
||||||
isGroup
|
isGroup
|
||||||
/>
|
/>
|
||||||
|
@ -34,7 +34,7 @@ const PoliciesHeaderContainer = styled.div`
|
|||||||
|
|
||||||
const PoliciesTitle = styled(Typography.Title)`
|
const PoliciesTitle = styled(Typography.Title)`
|
||||||
&& {
|
&& {
|
||||||
margin-bottom: 24px;
|
margin-bottom: 8px;
|
||||||
}
|
}
|
||||||
`;
|
`;
|
||||||
|
|
||||||
@ -329,7 +329,7 @@ export const PoliciesPage = () => {
|
|||||||
<Button
|
<Button
|
||||||
disabled={!record?.editable}
|
disabled={!record?.editable}
|
||||||
onClick={() => onToggleActiveDuplicate(record?.policy)}
|
onClick={() => onToggleActiveDuplicate(record?.policy)}
|
||||||
style={{ color: record?.editable ? 'red' : ANTD_GRAY[6] }}
|
style={{ color: record?.editable ? 'red' : ANTD_GRAY[6], width: 100 }}
|
||||||
>
|
>
|
||||||
DEACTIVATE
|
DEACTIVATE
|
||||||
</Button>
|
</Button>
|
||||||
@ -337,7 +337,7 @@ export const PoliciesPage = () => {
|
|||||||
<Button
|
<Button
|
||||||
disabled={!record?.editable}
|
disabled={!record?.editable}
|
||||||
onClick={() => onToggleActiveDuplicate(record?.policy)}
|
onClick={() => onToggleActiveDuplicate(record?.policy)}
|
||||||
style={{ color: record?.editable ? 'green' : ANTD_GRAY[6] }}
|
style={{ color: record?.editable ? 'green' : ANTD_GRAY[6], width: 100 }}
|
||||||
>
|
>
|
||||||
ACTIVATE
|
ACTIVATE
|
||||||
</Button>
|
</Button>
|
||||||
@ -381,7 +381,7 @@ export const PoliciesPage = () => {
|
|||||||
<PoliciesHeaderContainer>
|
<PoliciesHeaderContainer>
|
||||||
<PoliciesTitle level={2}>Manage Policies</PoliciesTitle>
|
<PoliciesTitle level={2}>Manage Policies</PoliciesTitle>
|
||||||
<Typography.Paragraph type="secondary">
|
<Typography.Paragraph type="secondary">
|
||||||
Manage access for Users & Groups of DataHub using Policies.
|
Manage access for DataHub Users & Groups using Policies.
|
||||||
</Typography.Paragraph>
|
</Typography.Paragraph>
|
||||||
</PoliciesHeaderContainer>
|
</PoliciesHeaderContainer>
|
||||||
</PoliciesContainer>
|
</PoliciesContainer>
|
||||||
|
@ -71,7 +71,7 @@ export default function PolicyDetailsModal({ policy, visible, onClose, privilege
|
|||||||
|
|
||||||
const actionButtons = (
|
const actionButtons = (
|
||||||
<ButtonsContainer>
|
<ButtonsContainer>
|
||||||
<Button onClick={onClose}>Cancel</Button>
|
<Button onClick={onClose}>Close</Button>
|
||||||
</ButtonsContainer>
|
</ButtonsContainer>
|
||||||
);
|
);
|
||||||
|
|
||||||
@ -140,7 +140,7 @@ export default function PolicyDetailsModal({ policy, visible, onClose, privilege
|
|||||||
<AvatarsGroup
|
<AvatarsGroup
|
||||||
users={policy?.actors?.resolvedUsers}
|
users={policy?.actors?.resolvedUsers}
|
||||||
entityRegistry={entityRegistry}
|
entityRegistry={entityRegistry}
|
||||||
maxCount={3}
|
maxCount={50}
|
||||||
size={28}
|
size={28}
|
||||||
/>
|
/>
|
||||||
{policy?.actors?.allUsers ? <Tag>All Users</Tag> : null}
|
{policy?.actors?.allUsers ? <Tag>All Users</Tag> : null}
|
||||||
@ -151,7 +151,7 @@ export default function PolicyDetailsModal({ policy, visible, onClose, privilege
|
|||||||
<AvatarsGroup
|
<AvatarsGroup
|
||||||
groups={policy?.actors?.resolvedGroups}
|
groups={policy?.actors?.resolvedGroups}
|
||||||
entityRegistry={entityRegistry}
|
entityRegistry={entityRegistry}
|
||||||
maxCount={3}
|
maxCount={50}
|
||||||
size={28}
|
size={28}
|
||||||
/>
|
/>
|
||||||
{policy?.actors?.allGroups ? <Tag>All Groups</Tag> : null}
|
{policy?.actors?.allGroups ? <Tag>All Groups</Tag> : null}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user