mirror of
https://github.com/strapi/strapi.git
synced 2025-11-22 21:23:11 +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') {
|
if (status === 'loading') {
|
||||||
return (
|
return (
|
||||||
<Flex padding={7} justifyContent="center" alignItems="center">
|
<Flex padding={7} justifyContent="center" alignItems="center">
|
||||||
<Loader />
|
<Loader>Loading content...</Loader>
|
||||||
</Flex>
|
</Flex>
|
||||||
);
|
);
|
||||||
}
|
}
|
||||||
@ -65,7 +65,14 @@ const ActionBody = ({ status, data, formattedDate }) => {
|
|||||||
id: 'Settings.permissions.auditLogs.user',
|
id: 'Settings.permissions.auditLogs.user',
|
||||||
defaultMessage: '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>
|
</Grid>
|
||||||
{/* TODO remove when adding JSON component */}
|
{/* TODO remove when adding JSON component */}
|
||||||
|
|||||||
@ -178,6 +178,7 @@
|
|||||||
"Settings.permissions.auditLogs.action": "Action",
|
"Settings.permissions.auditLogs.action": "Action",
|
||||||
"Settings.permissions.auditLogs.date": "Date",
|
"Settings.permissions.auditLogs.date": "Date",
|
||||||
"Settings.permissions.auditLogs.user": "User",
|
"Settings.permissions.auditLogs.user": "User",
|
||||||
|
"Settings.permissions.auditLogs.userId": "User ID",
|
||||||
"Settings.permissions.auditLogs.details": "Log Details",
|
"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.listview.header.subtitle": "Logs of all the activities that happened in your environment",
|
||||||
"Settings.permissions.auditLogs.entry.create": "Create entry",
|
"Settings.permissions.auditLogs.entry.create": "Create entry",
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user