mirror of
https://github.com/apache/superset.git
synced 2026-04-07 10:31:50 +00:00
fix(actionlog): restore full name display in Action Logs user column (#37985)
This commit is contained in:
@@ -33,7 +33,10 @@ import { fetchUserOptions } from 'src/features/groups/utils';
|
||||
export type ActionLogObject = {
|
||||
user: {
|
||||
username: string;
|
||||
first_name?: string;
|
||||
last_name?: string;
|
||||
};
|
||||
|
||||
action: string;
|
||||
dttm: string | null;
|
||||
dashboard_id?: number;
|
||||
@@ -153,7 +156,22 @@ function ActionLogList() {
|
||||
row: {
|
||||
original: { user },
|
||||
},
|
||||
}: any) => <span>{user?.username}</span>,
|
||||
}: any) => {
|
||||
const username = user?.username ?? '';
|
||||
const fullName = [user?.first_name, user?.last_name]
|
||||
.filter(Boolean)
|
||||
.join(' ');
|
||||
|
||||
const displayName = fullName || username;
|
||||
|
||||
return (
|
||||
<Typography.Text
|
||||
ellipsis={fullName ? { tooltip: { title: username } } : true}
|
||||
>
|
||||
{displayName}
|
||||
</Typography.Text>
|
||||
);
|
||||
},
|
||||
},
|
||||
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user