mirror of
https://github.com/strapi/strapi.git
synced 2025-11-03 19:36:20 +00:00
Add user ID to audit log modal
This commit is contained in:
parent
ebd758cd3a
commit
a91a9016ad
@ -16,7 +16,7 @@ const ActionBody = ({ status, data, formattedDate }) => {
|
||||
if (status === 'loading') {
|
||||
return (
|
||||
<Flex padding={7} justifyContent="center" alignItems="center">
|
||||
<Loader />
|
||||
<Loader>Loading content...</Loader>
|
||||
</Flex>
|
||||
);
|
||||
}
|
||||
@ -65,7 +65,14 @@ const ActionBody = ({ status, data, formattedDate }) => {
|
||||
id: 'Settings.permissions.auditLogs.user',
|
||||
defaultMessage: 'User',
|
||||
})}
|
||||
actionName={user ? user.fullname : '-'}
|
||||
actionName={user?.fullname || '-'}
|
||||
/>
|
||||
<ActionItem
|
||||
actionLabel={formatMessage({
|
||||
id: 'Settings.permissions.auditLogs.userId',
|
||||
defaultMessage: 'User ID',
|
||||
})}
|
||||
actionName={user?.id.toString() || '-'}
|
||||
/>
|
||||
</Grid>
|
||||
{/* TODO remove when adding JSON component */}
|
||||
|
||||
@ -178,6 +178,7 @@
|
||||
"Settings.permissions.auditLogs.action": "Action",
|
||||
"Settings.permissions.auditLogs.date": "Date",
|
||||
"Settings.permissions.auditLogs.user": "User",
|
||||
"Settings.permissions.auditLogs.userId": "User ID",
|
||||
"Settings.permissions.auditLogs.details": "Log Details",
|
||||
"Settings.permissions.auditLogs.listview.header.subtitle": "Logs of all the activities that happened in your environment",
|
||||
"Settings.permissions.auditLogs.entry.create": "Create entry",
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user