File tree Expand file tree Collapse file tree 1 file changed +7
-10
lines changed
jsapp/js/account/security/accessLogs Expand file tree Collapse file tree 1 file changed +7
-10
lines changed Original file line number Diff line number Diff line change 22import React from 'react' ;
33
44// Partial components
5- // import Button from 'js/components/common/button';
5+ import Button from 'js/components/common/button' ;
66import PaginatedQueryUniversalTable from 'js/universalTable/paginatedQueryUniversalTable.component' ;
77
88// Utilities
99import useAccessLogsQuery , { type AccessLog } from 'js/query/queries/accessLogs.query' ;
1010import { formatTime } from 'js/utils' ;
11- // import sessionStore from 'js/stores/session';
11+ import sessionStore from 'js/stores/session' ;
1212
1313// Styles
1414import securityStyles from 'js/account/security/securityRoute.module.scss' ;
1515
1616export 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 >
You can’t perform that action at this time.
0 commit comments