mirror of
https://github.com/datahub-project/datahub.git
synced 2025-12-28 02:17:53 +00:00
minor fixes(ui): Small UI display fixes (#4190)
This commit is contained in:
parent
eaf7b02b2a
commit
b08784e27a
@ -37,7 +37,8 @@ export const ExpandedOwner = ({ entityUrn, owner, refetch }: Props) => {
|
||||
name = entityRegistry.getDisplayName(EntityType.CorpUser, owner.owner);
|
||||
}
|
||||
|
||||
const pictureLink = (owner.owner.__typename === 'CorpUser' && owner.owner.editableInfo?.pictureLink) || undefined;
|
||||
const pictureLink =
|
||||
(owner.owner.__typename === 'CorpUser' && owner.owner.editableProperties?.pictureLink) || undefined;
|
||||
|
||||
const onDelete = async () => {
|
||||
try {
|
||||
|
||||
@ -61,7 +61,14 @@ export class UserEntity implements Entity<CorpUser> {
|
||||
};
|
||||
|
||||
displayName = (data: CorpUser) => {
|
||||
return data.editableProperties?.displayName || data.info?.displayName || data.info?.fullName || data.username;
|
||||
return (
|
||||
data.editableProperties?.displayName ||
|
||||
data.properties?.displayName ||
|
||||
data.properties?.fullName ||
|
||||
data.info?.displayName || // Deprecated info field
|
||||
data.info?.fullName || // Deprecated info field
|
||||
data.username
|
||||
);
|
||||
};
|
||||
|
||||
getGenericEntityProperties = (user: CorpUser) => {
|
||||
|
||||
@ -18,6 +18,7 @@ const AvatarStyled = styled(Avatar)<{ size?: number; $backgroundColor: string }>
|
||||
.ant-avatar-string {
|
||||
text-align: center;
|
||||
top: 0px;
|
||||
line-height: ${(props) => (props.size ? props.size : 24)}px;
|
||||
}
|
||||
`;
|
||||
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user