Skip to content

Commit

Permalink
Add Ayth method column to audit logs table (#815)
Browse files Browse the repository at this point in the history
  • Loading branch information
lubomirw authored Dec 13, 2024
1 parent e942ad2 commit 127e2fc
Showing 1 changed file with 10 additions and 1 deletion.
11 changes: 10 additions & 1 deletion src/components/_pages/auditLogs/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -40,6 +40,7 @@ function AuditLogs() {
// enum selectors
const moduleEnum = useSelector(enumSelectors.platformEnum(PlatformEnum.Module));
const actorEnum = useSelector(enumSelectors.platformEnum(PlatformEnum.ActorType));
const authMethodEnum = useSelector(enumSelectors.platformEnum(PlatformEnum.AuthMethod));
const resourceEnum = useSelector(enumSelectors.platformEnum(PlatformEnum.Resource));
const operationEnum = useSelector(enumSelectors.platformEnum(PlatformEnum.Operation));
const operationResultEnum = useSelector(enumSelectors.platformEnum(PlatformEnum.OperationResult));
Expand Down Expand Up @@ -166,7 +167,7 @@ function AuditLogs() {
},
{
content: 'Module',
align: 'center',
align: 'left',
id: 'module',
width: '5%',
},
Expand All @@ -176,6 +177,12 @@ function AuditLogs() {
id: 'actor',
width: '10%',
},
{
content: 'Auth method',
align: 'left',
id: 'authMethod',
width: '5%',
},
{
content: 'Resource',
align: 'left',
Expand Down Expand Up @@ -239,6 +246,7 @@ function AuditLogs() {
''
)}
</span>,
getEnumLabel(authMethodEnum, log.actor.authMethod),
<span style={{ whiteSpace: 'nowrap' }}>
{getEnumLabel(resourceEnum, log.resource.type)}
{log.resource.uuids && log.resource.uuids.length > 0 && log.resource.names && log.resource.names.length > 0 ? (
Expand Down Expand Up @@ -327,6 +335,7 @@ function AuditLogs() {
navigate,
moduleEnum,
actorEnum,
authMethodEnum,
resourceEnum,
operationEnum,
operationResultEnum,
Expand Down

0 comments on commit 127e2fc

Please sign in to comment.