Skip to content

Commit 15f985f

Browse files
committed
Put logout all button back in security settings.
1 parent b4aa1b7 commit 15f985f

File tree

1 file changed

+7
-10
lines changed

1 file changed

+7
-10
lines changed

jsapp/js/account/security/accessLogs/accessLogsSection.component.tsx

Lines changed: 7 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -2,40 +2,37 @@
22
import React from 'react';
33

44
// Partial components
5-
// import Button from 'js/components/common/button';
5+
import Button from 'js/components/common/button';
66
import PaginatedQueryUniversalTable from 'js/universalTable/paginatedQueryUniversalTable.component';
77

88
// Utilities
99
import useAccessLogsQuery, {type AccessLog} from 'js/query/queries/accessLogs.query';
1010
import {formatTime} from 'js/utils';
11-
// import sessionStore from 'js/stores/session';
11+
import sessionStore from 'js/stores/session';
1212

1313
// Styles
1414
import securityStyles from 'js/account/security/securityRoute.module.scss';
1515

1616
export default function AccessLogsSection() {
17-
// function logOutAllSessions() {
18-
// sessionStore.logOutAll();
19-
// }
17+
function logOutAllSessions() {
18+
sessionStore.logOutAll();
19+
}
2020

2121
return (
2222
<>
2323
<header className={securityStyles.securityHeader}>
2424
<h2 className={securityStyles.securityHeaderText}>
2525
{t('Recent account activity')}
2626
</h2>
27-
28-
{/* TODO: we comment this out until we know how to handle exsiting
29-
sessions for the moment of release of the feature. */}
30-
{/*<div className={securityStyles.securityHeaderActions}>
27+
<div className={securityStyles.securityHeaderActions}>
3128
<Button
3229
type='text'
3330
size='m'
3431
onClick={logOutAllSessions}
3532
label={t('Log out of all devices')}
3633
startIcon='logout'
3734
/>
38-
</div>*/}
35+
</div>
3936
</header>
4037

4138
<PaginatedQueryUniversalTable<AccessLog>

0 commit comments

Comments
 (0)