Skip to content

Commit

Permalink
feat(admin-ui): add ACR column
Browse files Browse the repository at this point in the history
  • Loading branch information
harryandriyan committed Sep 2, 2022
1 parent c52ad88 commit d2c69e6
Showing 1 changed file with 3 additions and 12 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -42,9 +42,11 @@ function SessionListPage({ sessions, permissions, loading, dispatch }) {
</span>
),
},
{ title: `ACR`, field: 'sessionAttributes.acr_values' },
{
title: `${t('fields.session_expired')}`,
field: 'expirationDate',
hidden: true,
render: (rowData) => (
<span>
{ moment(rowData.expirationDate).format("ddd, MMM DD, YYYY h:mm:ss A") }
Expand All @@ -70,17 +72,6 @@ function SessionListPage({ sessions, permissions, loading, dispatch }) {
toggle()
}

myActions.push((rowData) => ({
icon: () => <DeleteOutlined />,
iconProps: {
color: 'secondary',
id: 'revokeSession' + rowData.inum,
},
tooltip: `${t('Revoke Session')}`,
onClick: (event, rowData) => handleRevoke(rowData),
disabled: false,
}))

return (
<Card style={applicationStyle.mainCard}>
<CardBody>
Expand All @@ -101,7 +92,7 @@ function SessionListPage({ sessions, permissions, loading, dispatch }) {
selection: false,
pageSize: pageSize,
headerStyle: { ...applicationStyle.tableHeaderStyle, ...bgThemeColor },
actionsColumnIndex: -1,
actionsColumnIndex: -1
}}
/>
</GluuViewWrapper>
Expand Down

0 comments on commit d2c69e6

Please sign in to comment.