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 2
2
import React from 'react' ;
3
3
4
4
// Partial components
5
- // import Button from 'js/components/common/button';
5
+ import Button from 'js/components/common/button' ;
6
6
import PaginatedQueryUniversalTable from 'js/universalTable/paginatedQueryUniversalTable.component' ;
7
7
8
8
// Utilities
9
9
import useAccessLogsQuery , { type AccessLog } from 'js/query/queries/accessLogs.query' ;
10
10
import { formatTime } from 'js/utils' ;
11
- // import sessionStore from 'js/stores/session';
11
+ import sessionStore from 'js/stores/session' ;
12
12
13
13
// Styles
14
14
import securityStyles from 'js/account/security/securityRoute.module.scss' ;
15
15
16
16
export default function AccessLogsSection ( ) {
17
- // function logOutAllSessions() {
18
- // sessionStore.logOutAll();
19
- // }
17
+ function logOutAllSessions ( ) {
18
+ sessionStore . logOutAll ( ) ;
19
+ }
20
20
21
21
return (
22
22
< >
23
23
< header className = { securityStyles . securityHeader } >
24
24
< h2 className = { securityStyles . securityHeaderText } >
25
25
{ t ( 'Recent account activity' ) }
26
26
</ 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 } >
31
28
< Button
32
29
type = 'text'
33
30
size = 'm'
34
31
onClick = { logOutAllSessions }
35
32
label = { t ( 'Log out of all devices' ) }
36
33
startIcon = 'logout'
37
34
/>
38
- </div>*/ }
35
+ </ div >
39
36
</ header >
40
37
41
38
< PaginatedQueryUniversalTable < AccessLog >
You can’t perform that action at this time.
0 commit comments